summaryrefslogtreecommitdiffstats
path: root/test/kvm-pagestep_guest.S
blob: 8c86f8bac5ec79dd3c9849cf4ff9e8163c2cba19 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#include "cachepc/const.h"

#define TARGET_SET 15

.text
.align(16)
.code16gcc

guest:
.rept L1_SIZE
    nop
.endr

# instruction on page boundary test
    nop
.rept 2
.rept L1_LINESIZE * L1_SETS - 2
    nop
.endr
    rdtsc # two byte instruction
.endr
# ---------------------------------

# speculation on conditional jump test
    mov $0x01, %bx
    cmp $0x00, %bx

    je skip
.rept L1_LINESIZE * L1_SETS * 2
    nop
.endr
skip:
# -----------------------------------

    jmp guest