mirror of
https://github.com/dingusdev/dingusppc.git
synced 2025-01-13 03:30:31 +00:00
memctrlbase: Clear RAM to zero.
This commit is contained in:
parent
f541613c6b
commit
9a26016ed4
@ -153,7 +153,7 @@ bool MemCtrlBase::add_mem_region(uint32_t start_addr, uint32_t size,
|
||||
if (!is_range_free(start_addr, size))
|
||||
return false;
|
||||
|
||||
uint8_t* reg_content = new uint8_t[size];
|
||||
uint8_t* reg_content = new uint8_t[size](); /* () intializer clears the memory to zero */
|
||||
|
||||
this->mem_regions.push_back(reg_content);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user