diff options
author | Artyom Tarasenko <atar4qemu@googlemail.com> | 2010-04-18 00:34:03 +0200 |
---|---|---|
committer | Blue Swirl <blauwirbel@gmail.com> | 2010-04-18 08:55:20 +0000 |
commit | 676d9b9b883691cf99e298291dbc2ad7956516b9 (patch) | |
tree | df008d980c3360a84602df560a3f8891479ac8d4 /hw/sun4m.c | |
parent | da9fcfa54486797a5f261b43ad0c0b2f8dc47181 (diff) |
sparc32 use empty_slot for missing RAM v1
use empty_slot device for the RAM which is not installed
Models without ECC don't trap when missing ram is accessed.
v0->v1 compile only once and fix indentation
Signed-off-by: Artyom Tarasenko <atar4qemu@gmail.com>
Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
Diffstat (limited to 'hw/sun4m.c')
-rw-r--r-- | hw/sun4m.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/hw/sun4m.c b/hw/sun4m.c index 90e661d5c2..9a79120b1d 100644 --- a/hw/sun4m.c +++ b/hw/sun4m.c @@ -36,6 +36,7 @@ #include "isa.h" #include "fw_cfg.h" #include "escc.h" +#include "empty_slot.h" #include "qdev-addr.h" #include "loader.h" #include "elf.h" @@ -820,6 +821,10 @@ static void sun4m_hw_init(const struct sun4m_hwdef *hwdef, ram_addr_t RAM_size, /* set up devices */ ram_init(0, RAM_size, hwdef->max_mem); + /* models without ECC don't trap when missing ram is accessed */ + if (!hwdef->ecc_base) { + empty_slot_init(RAM_size, hwdef->max_mem - RAM_size); + } prom_init(hwdef->slavio_base, bios_name); |