Revision 47d073cc hw/usb/hcd-ehci.c

b/hw/usb/hcd-ehci.c
1187 1187
            break;
1188 1188
        }
1189 1189

  
1190
        /* not supporting dynamic frame list size at the moment */
1191
        if ((val & USBCMD_FLS) && !(s->usbcmd & USBCMD_FLS)) {
1192
            fprintf(stderr, "attempt to set frame list size -- value %d\n",
1193
                    val & USBCMD_FLS);
1194
            val &= ~USBCMD_FLS;
1195
        }
1196

  
1190 1197
        if (((USBCMD_RUNSTOP | USBCMD_PSE | USBCMD_ASE) & val) !=
1191 1198
            ((USBCMD_RUNSTOP | USBCMD_PSE | USBCMD_ASE) & s->usbcmd)) {
1192 1199
            if (s->pstate == EST_INACTIVE) {
1193 1200
                SET_LAST_RUN_CLOCK(s);
1194 1201
            }
1202
            s->usbcmd = val; /* Set usbcmd for ehci_update_halt() */
1195 1203
            ehci_update_halt(s);
1196 1204
            s->async_stepdown = 0;
1197 1205
            qemu_mod_timer(s->frame_timer, qemu_get_clock_ns(vm_clock));
1198 1206
        }
1199

  
1200
        /* not supporting dynamic frame list size at the moment */
1201
        if ((val & USBCMD_FLS) && !(s->usbcmd & USBCMD_FLS)) {
1202
            fprintf(stderr, "attempt to set frame list size -- value %d\n",
1203
                    val & USBCMD_FLS);
1204
            val &= ~USBCMD_FLS;
1205
        }
1206 1207
        break;
1207 1208

  
1208 1209
    case USBSTS:

Also available in: Unified diff