Revision 3b46e624 hw/cuda.c
b/hw/cuda.c | ||
---|---|---|
116 | 116 |
uint8_t anh; /* A-side data, no handshake */ |
117 | 117 |
|
118 | 118 |
CUDATimer timers[2]; |
119 |
|
|
119 |
|
|
120 | 120 |
uint8_t last_b; /* last value of B register */ |
121 | 121 |
uint8_t last_acr; /* last value of B register */ |
122 |
|
|
122 |
|
|
123 | 123 |
int data_in_size; |
124 | 124 |
int data_in_index; |
125 | 125 |
int data_out_index; |
... | ... | |
196 | 196 |
counter = (d - (s->counter_value + 1)) % (s->latch + 2); |
197 | 197 |
counter = (s->latch - counter) & 0xffff; |
198 | 198 |
} |
199 |
|
|
199 |
|
|
200 | 200 |
/* Note: we consider the irq is raised on 0 */ |
201 | 201 |
if (counter == 0xffff) { |
202 | 202 |
next_time = d + s->latch + 1; |
... | ... | |
317 | 317 |
static void cuda_writeb(void *opaque, target_phys_addr_t addr, uint32_t val) |
318 | 318 |
{ |
319 | 319 |
CUDAState *s = opaque; |
320 |
|
|
320 |
|
|
321 | 321 |
addr = (addr >> 9) & 0xf; |
322 | 322 |
#ifdef DEBUG_CUDA |
323 | 323 |
printf("cuda: write: reg=0x%x val=%02x\n", addr, val); |
Also available in: Unified diff