updated trap handler alignemnts to 64 bytes in priv tests

This commit is contained in:
Kip Macsai-Goren 2022-12-22 14:23:04 -08:00
parent 04bc787647
commit a37bde7452
4 changed files with 6 additions and 8 deletions

View File

@ -299,8 +299,7 @@ end_trap_triggers:
// --------------------------------------------------------------------------------------------
//.align 6
.align 2
.align 6
trap_handler_\MODE\():
j trap_unvectored_\MODE\() // for the unvectored implimentation: jump past this table of addresses into the actual handler
// *** ASSUMES that a cause value of 0 for an interrupt is unimplemented

View File

@ -35,8 +35,8 @@ RVTEST_CODE_BEGIN
# ---------------------------------------------------------------------------------------------
j main_code
# Thanks to MTVEC[1:0], trap handler addresses need to be aligned to a 4-byte boundary
.align 2
# 64 byte alignment for vectored traps to align with xtev
.align 6
###################
###################
trap_handler: #####

View File

@ -293,8 +293,7 @@ end_trap_triggers:
//
// --------------------------------------------------------------------------------------------
//.align 6
.align 3
.align 6
trap_handler_\MODE\():
j trap_unvectored_\MODE\() // for the unvectored implimentation: jump past this table of addresses into the actual handler
// *** ASSUMES that a cause value of 0 for an interrupt is unimplemented

View File

@ -35,8 +35,8 @@ RVTEST_CODE_BEGIN
# ---------------------------------------------------------------------------------------------
j main_code
# Thanks to MTVEC[1:0], trap handler addresses need to be aligned to a 4-byte boundary
.align 2
# 64 byte alignment for vectored traps to align with xtev
.align 6
###################
###################
trap_handler: #####