Skip to content
Snippets Groups Projects
Commit 7d239946 authored by Roberto Hexsel's avatar Roberto Hexsel
Browse files

fixed test script

parent f4abb176
Branches
No related tags found
No related merge requests found
......@@ -209,18 +209,16 @@ excp_tbl: # see Table 8-25, pg 95,96
j h_Ov # 12 overflow
nop
j h_trap # 13 trap
wait 0x0d # 13 trap -- abort simulation
nop
wait 0x14 # reserved, should never get here -- abort simulation
wait 0x0e # reserved, should never get here -- abort simulation
nop
wait 0x15 # PF exception, should never get here -- abort simulation
wait 0x0f # FP exception, should never get here -- abort simulation
nop
h_trap: wait 13
h_Mod:
h_TLBL:
h_TLBS:
......@@ -230,8 +228,6 @@ h_RI:
h_CpU:
h_Ov:
excp_0180ret:
lui $k1, %hi(_excp_saves) # Read previous contents of STATUS
ori $k1, $k1, %lo(_excp_saves)
......@@ -332,7 +328,7 @@ _excp_BFC0:
nop
nop
nop
wait 0x38
wait 0xff # signal exception and abort simulation
nop
.end _excp_BFC0
##---------------------------------------------------------------
......
......@@ -857,8 +857,9 @@ begin
-- simulation aborted by instruction "wait N"
assert not(exception = exWAIT and syscall_n /= x"80000")
report LF & "INVALID REFERENCE at EPC="& SLV32HEX(EPC) &
" opc="& SLV2STR(opcode) & " fun=" & SLV2STR(func) &
report LF & "ABORTED at EPC="& SLV32HEX(EPC) &
" bad="& SLV32HEX(BadVAddr) &
" opc="& SLV2STR(opcode) & " wait=" & SLV2STR(syscall_n(7 downto 0)) &
" instr=" & SLV32HEX(RF_instruction) &
LF & "SIMULATION ABORTED AT EXCEPTION HANDLER;"
severity failure;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment