Revision 3944966d

b/hw/esp.c
61 61
    int32_t ti_size;
62 62
    uint32_t ti_rptr, ti_wptr;
63 63
    uint8_t ti_buf[TI_BUFSZ];
64
    uint32_t sense;
64
    uint32_t status;
65 65
    uint32_t dma;
66 66
    SCSIBus bus;
67 67
    SCSIDevice *current_dev;
......
318 318

  
319 319
static void write_response(ESPState *s)
320 320
{
321
    DPRINTF("Transfer status (sense=%d)\n", s->sense);
322
    s->ti_buf[0] = s->sense;
321
    DPRINTF("Transfer status (status=%d)\n", s->status);
322
    s->ti_buf[0] = s->status;
323 323
    s->ti_buf[1] = 0;
324 324
    if (s->dma) {
325 325
        s->dma_memory_write(s->dma_opaque, s->ti_buf, 2);
......
408 408
        s->async_len = 0;
409 409
        if (arg)
410 410
            DPRINTF("Command failed\n");
411
        s->sense = arg;
411
        s->status = arg;
412 412
        s->rregs[ESP_RSTAT] = STAT_ST;
413 413
        esp_dma_done(s);
414 414
        if (s->current_req) {
......
688 688
        VMSTATE_UINT32(ti_rptr, ESPState),
689 689
        VMSTATE_UINT32(ti_wptr, ESPState),
690 690
        VMSTATE_BUFFER(ti_buf, ESPState),
691
        VMSTATE_UINT32(sense, ESPState),
691
        VMSTATE_UINT32(status, ESPState),
692 692
        VMSTATE_UINT32(dma, ESPState),
693 693
        VMSTATE_BUFFER(cmdbuf, ESPState),
694 694
        VMSTATE_UINT32(cmdlen, ESPState),

Also available in: Unified diff