Commit 8bb1f9c51c7fa4e4ea2eeed77eb011f10b6f72c6

Authored by j_mayer
1 parent e1833e1f

Provision for x86_64-linux-user target: needs get_sp_from_cpustate


git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3262 c046a42c-6fe2-441c-8c8c-71466251a162
linux-user/x86_64/target_signal.h
... ... @@ -21,4 +21,9 @@ typedef struct target_sigaltstack {
21 21 #define TARGET_MINSIGSTKSZ 2048
22 22 #define TARGET_SIGSTKSZ 8192
23 23  
  24 +static inline target_ulong get_sp_from_cpustate(CPUX86State *state)
  25 +{
  26 + return state->regs[R_ESP];
  27 +}
  28 +
24 29 #endif /* TARGET_SIGNAL_H */
... ...