aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-17 19:34:41 +0000
committerblueswir1 <blueswir1@c046a42c-6fe2-441c-8c8c-71466251a162>2007-05-17 19:34:41 +0000
commitf96f4c9d720bced5ee0f57c9dc36cf17347155b9 (patch)
tree00e1d1bde6fc8a95e712dfafbdb7954cd766b014
parent31ade715088fa40976cdaf7bd4c01345ea8fda26 (diff)
Make TCX registers match what NetBSD expects
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@2826 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--hw/tcx.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/hw/tcx.c b/hw/tcx.c
index db27dcf491..326f458651 100644
--- a/hw/tcx.c
+++ b/hw/tcx.c
@@ -538,8 +538,6 @@ void tcx_init(DisplayState *ds, uint32_t addr, uint8_t *vram_base,
s->cplane = (uint32_t *)vram_base;
s->cplane_offset = vram_offset;
cpu_register_physical_memory(addr + 0x0a000000, size, vram_offset);
- cpu_register_physical_memory(addr + 0x00301000, TCX_THC_NREGS_24,
- dummy_memory);
graphic_console_init(s->ds, tcx24_update_display,
tcx24_invalidate_display, tcx24_screen_dump, s);
} else {
@@ -548,6 +546,9 @@ void tcx_init(DisplayState *ds, uint32_t addr, uint8_t *vram_base,
graphic_console_init(s->ds, tcx_update_display, tcx_invalidate_display,
tcx_screen_dump, s);
}
+ // NetBSD writes here even with 8-bit display
+ cpu_register_physical_memory(addr + 0x00301000, TCX_THC_NREGS_24,
+ dummy_memory);
register_savevm("tcx", addr, 1, tcx_save, tcx_load, s);
qemu_register_reset(tcx_reset, s);