aboutsummaryrefslogtreecommitdiff
path: root/linux-user/hexagon
diff options
context:
space:
mode:
authorBrian Cain <bcain@quicinc.com>2024-08-26 17:26:30 -0700
committerBrian Cain <brian.cain@oss.qualcomm.com>2024-12-12 21:43:46 -0600
commiteed3f358796791dbd065a69adf85ee4a588d3981 (patch)
tree5de1f87f003f7d6aa6263a87fc6a315d214e5878 /linux-user/hexagon
parent0cb73cb5a024bb724bb7eb39fe7fc5e07dc7180a (diff)
downloadqemu-eed3f358796791dbd065a69adf85ee4a588d3981.zip
qemu-eed3f358796791dbd065a69adf85ee4a588d3981.tar.gz
qemu-eed3f358796791dbd065a69adf85ee4a588d3981.tar.bz2
target/hexagon: rename HEX_EXCP_*=>HEX_CAUSE_*
The values previously used for "HEX_EXCP_*" were the cause code definitions and not the event numbers. So in this commit, we update the names to reflect the cause codes. In HEX_EVENT_TRAP0's case, we add a new "HEX_EVENT_*" with the correct event number. Reviewed-by: Taylor Simpson <ltaylorsimpson@gmail.com> Signed-off-by: Brian Cain <brian.cain@oss.qualcomm.com>
Diffstat (limited to 'linux-user/hexagon')
-rw-r--r--linux-user/hexagon/cpu_loop.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux-user/hexagon/cpu_loop.c b/linux-user/hexagon/cpu_loop.c
index d41159e..40db596 100644
--- a/linux-user/hexagon/cpu_loop.c
+++ b/linux-user/hexagon/cpu_loop.c
@@ -42,7 +42,7 @@ void cpu_loop(CPUHexagonState *env)
case EXCP_INTERRUPT:
/* just indicate that signals should be handled asap */
break;
- case HEX_EXCP_TRAP0:
+ case HEX_EVENT_TRAP0:
syscallnum = env->gpr[6];
env->gpr[HEX_REG_PC] += 4;
ret = do_syscall(env,
@@ -60,7 +60,7 @@ void cpu_loop(CPUHexagonState *env)
env->gpr[0] = ret;
}
break;
- case HEX_EXCP_PC_NOT_ALIGNED:
+ case HEX_CAUSE_PC_NOT_ALIGNED:
force_sig_fault(TARGET_SIGBUS, TARGET_BUS_ADRALN,
env->gpr[HEX_REG_R31]);
break;