Revision cb25a3fb
b/hw/eepro100.c | ||
---|---|---|
976 | 976 |
|
977 | 977 |
static void eepro100_cu_command(EEPRO100State * s, uint8_t val) |
978 | 978 |
{ |
979 |
cu_state_t cu_state; |
|
979 | 980 |
switch (val) { |
980 | 981 |
case CU_NOP: |
981 | 982 |
/* No operation. */ |
982 | 983 |
break; |
983 | 984 |
case CU_START: |
984 |
if (get_cu_state(s) != cu_idle) { |
|
985 |
/* Intel documentation says that CU must be idle for the CU |
|
986 |
* start command. Intel driver for Linux also starts the CU |
|
987 |
* from suspended state. */ |
|
988 |
logout("CU state is %u, should be %u\n", get_cu_state(s), cu_idle); |
|
989 |
//~ assert(!"wrong CU state"); |
|
985 |
cu_state = get_cu_state(s); |
|
986 |
if (cu_state != cu_idle && cu_state != cu_suspended) { |
|
987 |
/* Intel documentation says that CU must be idle or suspended |
|
988 |
* for the CU start command. */ |
|
989 |
logout("unexpected CU state is %u\n", cu_state); |
|
990 | 990 |
} |
991 | 991 |
set_cu_state(s, cu_active); |
992 | 992 |
s->cu_offset = s->pointer; |
Also available in: Unified diff