Getting into early_trap_vector while debuging after using LW or SW


(Ivan) #1

While debugging right after i use lw or sw the debugers jumps into the early_trap_vector.
Here is the code, the debuger goes into the early trap vector right after the lw a1, 0(a2)

.section .text      
.align 2
.globl asm_main 

.equ equate_val,    0x8BADF00D
.equ const_val,     0x12200000
asm_main:
# add program code here

li a1, const_val    

la a2, const_val    

li a1, equate_val   
lw a1, 0(a2)       



ret