]> xenbits.xensource.com Git - qemu-xen-4.4-testing.git/commitdiff
m68k missing get_sp_from_cpustate(), by Thayne Harbaugh.
authorths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 18 Dec 2007 01:46:39 +0000 (01:46 +0000)
committerths <ths@c046a42c-6fe2-441c-8c8c-71466251a162>
Tue, 18 Dec 2007 01:46:39 +0000 (01:46 +0000)
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@3836 c046a42c-6fe2-441c-8c8c-71466251a162

linux-user/m68k/target_signal.h

index 47852d546fe5f33dd90d4f7babd5f768fd0bff9a..479758a4218eee1039949ab82753cda6c994c292 100644 (file)
@@ -21,4 +21,9 @@ typedef struct target_sigaltstack {
 #define TARGET_MINSIGSTKSZ     2048
 #define TARGET_SIGSTKSZ        8192
 
+static inline abi_ulong get_sp_from_cpustate(CPUM68KState *state)
+{
+    return state->aregs[7];
+}
+
 #endif /* TARGET_SIGNAL_H */