summaryrefslogtreecommitdiff
path: root/410user/libsimics/simics.S
diff options
context:
space:
mode:
Diffstat (limited to '410user/libsimics/simics.S')
-rw-r--r--410user/libsimics/simics.S14
1 files changed, 14 insertions, 0 deletions
diff --git a/410user/libsimics/simics.S b/410user/libsimics/simics.S
new file mode 100644
index 0000000..28c35dc
--- /dev/null
+++ b/410user/libsimics/simics.S
@@ -0,0 +1,14 @@
+/* simics.S - Simics interface (user side) */
+/* Copyright (c) 2014 Carnegie Mellon University */
+
+/* sim_call(ebx, ecx, edx) */
+.global sim_call
+sim_call:
+ push %ebx
+ mov 0x8(%esp), %ebx
+ mov 0xC(%esp), %ecx
+ mov 0x10(%esp), %edx
+ mov $0, %eax
+ xchg %ebx, %ebx
+ pop %ebx
+ ret