aboutsummaryrefslogtreecommitdiff
path: root/linux-user/mips/syscall.h
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-26 18:47:20 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2005-11-26 18:47:20 +0000
commit048f6b4df7ca3be292f40f7f56fd4e48edcabbe9 (patch)
tree2d297f570bdc37d620a882181d2dcf8917fcc8b8 /linux-user/mips/syscall.h
parenteeef26cd428b584a8211cc42185585c840b778f4 (diff)
mips user emulation
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@1668 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/mips/syscall.h')
-rw-r--r--linux-user/mips/syscall.h23
1 files changed, 23 insertions, 0 deletions
diff --git a/linux-user/mips/syscall.h b/linux-user/mips/syscall.h
new file mode 100644
index 0000000000..4b3c7d625c
--- /dev/null
+++ b/linux-user/mips/syscall.h
@@ -0,0 +1,23 @@
+
+/* this struct defines the way the registers are stored on the
+ stack during a system call. */
+
+struct target_pt_regs {
+#if 1
+ /* Pad bytes for argument save space on the stack. */
+ target_ulong pad0[6];
+#endif
+
+ /* Saved main processor registers. */
+ target_ulong regs[32];
+
+ /* Saved special registers. */
+ target_ulong cp0_status;
+ target_ulong lo;
+ target_ulong hi;
+ target_ulong cp0_badvaddr;
+ target_ulong cp0_cause;
+ target_ulong cp0_epc;
+};
+
+#define UNAME_MACHINE "mips"