diff options
-rw-r--r-- | hw/lpc-port80h.c | 4 | ||||
-rw-r--r-- | hw/test/run-port80h.c | 2 |
2 files changed, 6 insertions, 0 deletions
diff --git a/hw/lpc-port80h.c b/hw/lpc-port80h.c index 60bde92..caff0fd 100644 --- a/hw/lpc-port80h.c +++ b/hw/lpc-port80h.c @@ -18,6 +18,7 @@ #include <lpc.h> #include <op-panel.h> +#include <chip.h> /* * Convert our detailed op_display() call into 1 byte for LPC port 80h @@ -168,6 +169,9 @@ void op_display_lpc(enum op_severity s, enum op_module m, uint16_t c) static uint8_t port80_val = 0x80; static uint16_t port8x_val = 0x8000; + if (chip_quirk(QUIRK_SIMICS)) + return; + port80_val = op_display_to_port80(port80_val, s, m, c); lpc_outb(port80_val, 0x80); port8x_val = op_display_to_port8x(port8x_val, s, m, c); diff --git a/hw/test/run-port80h.c b/hw/test/run-port80h.c index 6a9ec31..e0d9437 100644 --- a/hw/test/run-port80h.c +++ b/hw/test/run-port80h.c @@ -42,6 +42,8 @@ void op_display_lpc(enum op_severity s, enum op_module m, uint16_t c); #include "../lpc-port80h.c" #include "../../core/test/stubs.c" +enum proc_chip_quirks proc_chip_quirks; + int main(void) { op_display_lpc(OP_LOG, OP_MOD_INIT, 0x00); |