mirror of
https://github.com/dingusdev/dingusppc.git
synced 2026-04-27 02:18:19 +00:00
Remove MPC106 RAM allocation failed error.
It might not be an error - usually it just means that it was already allocated so demote this message to a warning. Related memory allocation changes: - Added find_range_exact which searches for an allocation that exactly matches a range. - Added find_range_contains which searches for an allocation that is completely contained within a range. - Added find_range_overlaps which searches for an allocation that overlaps any part of a range. - Added is_range_free which is similar to the above three. It returns false if any allocated range overlaps a range. It reports the regions that it overlaps. - Fix add_mem_region and add_memio_region so that they don't just check the first byte and last byte. - Memory allocation logging should include the range (first byte..last byte) and device if possible. - Log memory allocations.
This commit is contained in:
@@ -72,6 +72,11 @@ public:
|
||||
virtual bool set_data(uint32_t reg_addr, const uint8_t* data, uint32_t size);
|
||||
|
||||
AddressMapEntry* find_range(uint32_t addr);
|
||||
AddressMapEntry* find_range_exact(uint32_t addr, uint32_t size, MMIODevice* dev_instance);
|
||||
AddressMapEntry* find_range_contains(uint32_t addr, uint32_t size);
|
||||
AddressMapEntry* find_range_overlaps(uint32_t addr, uint32_t size);
|
||||
bool is_range_free(uint32_t addr, uint32_t size);
|
||||
|
||||
AddressMapEntry* find_rom_region();
|
||||
|
||||
protected:
|
||||
|
||||
Reference in New Issue
Block a user