removed SP init, moved to CPU module
This commit is contained in:
parent
d6f774eaea
commit
4c89c48fb0
|
@ -9,7 +9,8 @@ Registers::Registers() {
|
||||||
initCSR();
|
initCSR();
|
||||||
//register_bank[sp] = 1024-1; // SP points to end of memory
|
//register_bank[sp] = 1024-1; // SP points to end of memory
|
||||||
//register_bank[sp] = 0x70000000;
|
//register_bank[sp] = 0x70000000;
|
||||||
register_bank[sp] = (0x10000000 / 4) - 1;
|
//register_bank[sp] = (0x10000000 / 4) - 1;
|
||||||
|
|
||||||
//cout << "Memory size: 0x" << hex << Memory::SIZE << endl;
|
//cout << "Memory size: 0x" << hex << Memory::SIZE << endl;
|
||||||
//cout << "SP address: 0x" << hex << (0x10000000 / 4) - 1 << endl;
|
//cout << "SP address: 0x" << hex << (0x10000000 / 4) - 1 << endl;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue