diff options
author | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-03-01 17:13:26 +0000 |
---|---|---|
committer | bellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162> | 2003-03-01 17:13:26 +0000 |
commit | 367e86e8476d6373a00d0e56a29b03c4b8f3e2ee (patch) | |
tree | 3cfad136fffefb2c5d8635b3b82fe4a587b4f1f4 /linux-user/main.c | |
parent | 7bfdb6d18c7bb5792c896a0bf6cf1ad7431630cb (diff) |
new x86 CPU core
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@14 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'linux-user/main.c')
-rw-r--r-- | linux-user/main.c | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/linux-user/main.c b/linux-user/main.c index 544953eb25..1d76d4d7cc 100644 --- a/linux-user/main.c +++ b/linux-user/main.c @@ -191,6 +191,41 @@ void INT_handler(int num, void *env) } /***********************************************************/ +/* new CPU core */ + +void port_outb(int addr, int val) +{ + fprintf(stderr, "outb: port=0x%04x, data=%02x\n", addr, val); +} + +void port_outw(int addr, int val) +{ + fprintf(stderr, "outw: port=0x%04x, data=%04x\n", addr, val); +} + +void port_outl(int addr, int val) +{ + fprintf(stderr, "outl: port=0x%04x, data=%08x\n", addr, val); +} + +int port_inb(int addr) +{ + fprintf(stderr, "inb: port=0x%04x\n", addr); + return 0; +} + +int port_inw(int addr) +{ + fprintf(stderr, "inw: port=0x%04x\n", addr); + return 0; +} + +int port_inl(int addr) +{ + fprintf(stderr, "inl: port=0x%04x\n", addr); + return 0; +} + /* XXX: currently we use LDT entries */ #define __USER_CS (0x23|4) @@ -270,6 +305,7 @@ int main(int argc, char **argv) LDT[__USER_DS >> 3].dwSelLimit = 0xfffff; LDT[__USER_DS >> 3].lpSelBase = NULL; init_npu(); + build_decode_tables(); for(;;) { int err; |