mirror of
https://github.com/vortexgpgpu/vortex.git
synced 2025-04-23 13:27:29 -04:00
Memory size should be a multiple of word size. Otherwise it's hard to fetch/read the last instruction/byte.
This commit is contained in:
parent
91696172e2
commit
70542d46a2
1 changed files with 2 additions and 0 deletions
|
@ -29,6 +29,8 @@ RamMemDevice::RamMemDevice(const char *filename, Size wordSize) :
|
|||
}
|
||||
|
||||
do { contents.push_back(input.get()); } while (input);
|
||||
|
||||
while (contents.size() % wordSize) contents.push_back(0x00);
|
||||
}
|
||||
|
||||
RamMemDevice::RamMemDevice(Size size, Size wordSize) :
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue