These misaligned data and misaligned destination exceptions
are defined, but not currently raised.
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
target/nios2/helper.c | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/target/nios2/helper.c b/target/nios2/helper.c
index 285f3aae1d..0392c0ea84 100644
--- a/target/nios2/helper.c
+++ b/target/nios2/helper.c
@@ -119,6 +119,12 @@ void nios2_cpu_do_interrupt(CPUState *cs)
case EXCP_ILLEGAL:
name = "ILLEGAL insn";
break;
+ case EXCP_UNALIGN:
+ name = "Misaligned (data)";
+ break;
+ case EXCP_UNALIGND:
+ name = "Misaligned (destination)";
+ break;
case EXCP_TRAP:
name = "TRAP insn";
break;
@@ -167,6 +173,8 @@ void nios2_cpu_do_interrupt(CPUState *cs)
case EXCP_SUPERD:
case EXCP_ILLEGAL:
case EXCP_TRAP:
+ case EXCP_UNALIGN:
+ case EXCP_UNALIGND:
do_exception(cpu, cpu->exception_addr, false);
break;
--
2.25.1