summaryrefslogtreecommitdiffstats
path: root/test/kvm-step_guest.S
diff options
context:
space:
mode:
authorLouis Burda <quent.burda@gmail.com>2023-01-24 16:17:45 +0100
committerLouis Burda <quent.burda@gmail.com>2023-01-24 16:17:45 +0100
commit65daf1cb353f4ba5e2f08ccbce6b0d5220b0099a (patch)
tree87ab9ad37716cf5c0c110e905e95113de460d607 /test/kvm-step_guest.S
parente4762c2cdefacf13d26967b7e5f0735c2748026b (diff)
downloadcachepc-65daf1cb353f4ba5e2f08ccbce6b0d5220b0099a.tar.gz
cachepc-65daf1cb353f4ba5e2f08ccbce6b0d5220b0099a.zip
Create flat binaries to support more complex guests
Diffstat (limited to 'test/kvm-step_guest.S')
-rw-r--r--test/kvm-step_guest.S28
1 files changed, 12 insertions, 16 deletions
diff --git a/test/kvm-step_guest.S b/test/kvm-step_guest.S
index 3d1b0e7..dcc8ff3 100644
--- a/test/kvm-step_guest.S
+++ b/test/kvm-step_guest.S
@@ -2,26 +2,22 @@
#define TARGET_SET 15
-.global guest_start
-.global guest_stop
-
+.text
.align(16)
.code16gcc
-guest_start:
- mov $(L1_LINESIZE * (L1_SETS + 11)), %bx
- movb (%bx), %bl
- hlt
+guest:
+ mov $(L1_LINESIZE * (L1_SETS + 11)), %bx
+ movb (%bx), %bl
+ hlt
- mov $(L1_LINESIZE * (L1_SETS + 13)), %bx
- movb (%bx), %bl
- hlt
+ mov $(L1_LINESIZE * (L1_SETS + 13)), %bx
+ movb (%bx), %bl
+ hlt
- mov $(L1_LINESIZE * (L1_SETS + 15)), %bx
- movb (%bx), %bl
- hlt
+ mov $(L1_LINESIZE * (L1_SETS + 15)), %bx
+ movb (%bx), %bl
+ hlt
- mov $0x00, %ax
- jmp *%ax
-guest_stop:
+ jmp guest