]> Git Repo - qemu.git/blobdiff - linux-user/openrisc/target_signal.h
linux-user: fix microblaze get_sp_from_cpustate()
[qemu.git] / linux-user / openrisc / target_signal.h
index 964aed69f1311d55835deb0ef4d1bdd3e02c6768..95a733e15af4aaa95027075f94e1e1541f7d4cac 100644 (file)
@@ -1,5 +1,5 @@
-#ifndef TARGET_SIGNAL_H
-#define TARGET_SIGNAL_H
+#ifndef OPENRISC_TARGET_SIGNAL_H
+#define OPENRISC_TARGET_SIGNAL_H
 
 #include "cpu.h"
 
@@ -20,7 +20,8 @@ typedef struct target_sigaltstack {
 
 static inline abi_ulong get_sp_from_cpustate(CPUOpenRISCState *state)
 {
-    return state->gpr[1];
+    return cpu_get_gpr(state, 1);
 }
 
-#endif /* TARGET_SIGNAL_H */
+
+#endif /* OPENRISC_TARGET_SIGNAL_H */
This page took 0.024879 seconds and 4 git commands to generate.