X-Git-Url: http://git.maemo.org/git/?p=qemu;a=blobdiff_plain;f=hw%2Fcuda.c;fp=hw%2Fcuda.c;h=828ccf722c3d2161739fea5b9e279eab89150d23;hp=0956354817a397832aa49dd75694ef55c9160ead;hb=a03c3bde4e288e790eccfb8cd45abd8ecbf467dc;hpb=e2ffa1bf065fa199f27d661d495573e9d6059bf1 diff --git a/hw/cuda.c b/hw/cuda.c index 0956354..828ccf7 100644 --- a/hw/cuda.c +++ b/hw/cuda.c @@ -36,10 +36,10 @@ //#define DEBUG_CUDA_PACKET #ifdef DEBUG_CUDA -#define CUDA_DPRINTF(fmt, args...) \ -do { printf("CUDA: " fmt , ##args); } while (0) +#define CUDA_DPRINTF(fmt, ...) \ + do { printf("CUDA: " fmt , ## __VA_ARGS__); } while (0) #else -#define CUDA_DPRINTF(fmt, args...) +#define CUDA_DPRINTF(fmt, ...) #endif /* Bits in B data register: all active low */ @@ -762,6 +762,6 @@ void cuda_init (int *cuda_mem_index, qemu_irq irq) s->adb_poll_timer = qemu_new_timer(vm_clock, cuda_adb_poll, s); *cuda_mem_index = cpu_register_io_memory(0, cuda_read, cuda_write, s); register_savevm("cuda", -1, 1, cuda_save, cuda_load, s); - qemu_register_reset(cuda_reset, s); + qemu_register_reset(cuda_reset, 0, s); cuda_reset(s); }