You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
should raise an error, as the effective address (0 + 2 = 2) is not 8-byte aligned;
The code
SW R0, 2(R0)
crashes the simulator, with the following error:
edumips64.core.is.AddressErrorException
at edumips64.core.is.SW.MEM(SW.java:64) at edumips64.core.CPU.step(CPU.java:240) at edumips64.ui.CPUGUIThread.run(CPUGUIThread.java:137)
It's obvious that misaligned access must be handled consistently and gracefully.
References: H&P Appendix B.3; MIPS64 Vol. 2 (The MIPS64 Instruction Set) - description of Load/Store instructions
The text was updated successfully, but these errors were encountered:
The old memory access policy was only by address, but in many places we really
want to access memory by index. The difference is that the by-address access
can issue alignment problems, while the by-index one cannot. This will be
useful later, while handling better the alignment problems described in
Issue #2.
The code
should raise an error, as the effective address (0 + 2 = 2) is not 8-byte aligned;
The code
crashes the simulator, with the following error:
It's obvious that misaligned access must be handled consistently and gracefully.
References: H&P Appendix B.3; MIPS64 Vol. 2 (The MIPS64 Instruction Set) - description of Load/Store instructions
The text was updated successfully, but these errors were encountered: