memctrlbase: Clear RAM to zero.

This commit is contained in:
joevt 2023-10-30 17:20:05 -07:00 committed by dingusdev
parent f541613c6b
commit 9a26016ed4
1 changed files with 1 additions and 1 deletions

View File

@ -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);