kvm-pagestep_guest.S (486B)
1#include "cachepc/const.h" 2 3#define TARGET_SET 15 4 5.text 6.align(16) 7.code16gcc 8 9guest: 10.rept L1_SIZE 11 nop 12.endr 13 14# instruction on page boundary test 15 nop 16.rept 2 17.rept L1_LINESIZE * L1_SETS - 2 18 nop 19.endr 20 rdtsc # two byte instruction 21.endr 22# --------------------------------- 23 24# speculation on conditional jump test 25 mov $0x01, %bx 26 cmp $0x00, %bx 27 28 je skip 29.rept L1_LINESIZE * L1_SETS * 2 30 nop 31.endr 32skip: 33# ----------------------------------- 34 35 jmp guest 36