mirror of
https://github.com/dingusdev/dingusppc.git
synced 2024-12-23 06:29:38 +00:00
Fix Gossamer machineID allocation size.
When the allocation is logged, it will look appear like this: Added mmio region 0xFF000004..0xFF000FFF (Machine-id) instead of like this: Added mmio region 0xFF000004..0xFF001003 (Machine-id)
This commit is contained in:
parent
52fa30b71d
commit
2f08a0b327
@ -107,7 +107,7 @@ int initialize_gossamer(std::string& id)
|
||||
|
||||
gMachineObj->add_device("MachineID", std::unique_ptr<GossamerID>(new GossamerID(sys_reg)));
|
||||
grackle_obj->add_mmio_region(
|
||||
0xFF000004, 4096, dynamic_cast<MMIODevice*>(gMachineObj->get_comp_by_name("MachineID")));
|
||||
0xFF000000 + 4, 4096 - 4, dynamic_cast<MMIODevice*>(gMachineObj->get_comp_by_name("MachineID")));
|
||||
|
||||
// allocate ROM region
|
||||
if (!grackle_obj->add_rom_region(0xFFC00000, 0x400000)) {
|
||||
|
Loading…
Reference in New Issue
Block a user