aboutsummaryrefslogtreecommitdiff
path: root/linux-user/nios2/target_cpu.h
diff options
context:
space:
mode:
Diffstat (limited to 'linux-user/nios2/target_cpu.h')
-rw-r--r--linux-user/nios2/target_cpu.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/linux-user/nios2/target_cpu.h b/linux-user/nios2/target_cpu.h
index 20ab4790a9..14f63338fa 100644
--- a/linux-user/nios2/target_cpu.h
+++ b/linux-user/nios2/target_cpu.h
@@ -36,4 +36,8 @@ static inline void cpu_set_tls(CPUNios2State *env, target_ulong newtls)
*/
}
+static inline abi_ulong get_sp_from_cpustate(CPUNios2State *state)
+{
+ return state->regs[R_SP];
+}
#endif