Commit a526e20d authored by Avi Kivity's avatar Avi Kivity Committed by Marcelo Tosatti
Browse files

Allow emulation tests to trap exceptions



Some instructions trap on execution, we need a way to see if they raise an
exception as expected.
Signed-off-by: default avatarAvi Kivity <avi@redhat.com>
Signed-off-by: default avatarMarcelo Tosatti <mtosatti@redhat.com>
parent 597e0ef2
......@@ -45,7 +45,8 @@ $(TEST_DIR)/vmexit.flat: $(cstart.o) $(TEST_DIR)/vmexit.o
$(TEST_DIR)/smptest.flat: $(cstart.o) $(TEST_DIR)/smptest.o
$(TEST_DIR)/emulator.flat: $(cstart.o) $(TEST_DIR)/emulator.o \
$(TEST_DIR)/vm.o $(TEST_DIR)/print.o
$(TEST_DIR)/vm.o $(TEST_DIR)/print.o \
$(TEST_DIR)/idt.o
$(TEST_DIR)/port80.flat: $(cstart.o) $(TEST_DIR)/port80.o
......
#include "ioram.h"
#include "vm.h"
#include "libcflat.h"
#include "idt.h"
#define memset __builtin_memset
#define TESTDEV_IO_PORT 0xe0
......@@ -582,6 +583,7 @@ int main()
unsigned long t1, t2;
setup_vm();
setup_idt();
mem = vmap(IORAM_BASE_PHYS, IORAM_LEN);
// test mov reg, r/m and mov r/m, reg
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment