From: Pekka Enberg Date: Wed, 31 Mar 2010 18:55:49 +0000 (+0300) Subject: kvm: Remove unused cpu.c file X-Git-Tag: next-20110824~3^2~528^2~198 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=47eb3e9fda62b1dd1bd4747f6b8617ecce6091e8;p=karo-tx-linux.git kvm: Remove unused cpu.c file Signed-off-by: Pekka Enberg --- diff --git a/tools/kvm/Makefile b/tools/kvm/Makefile index da5b18bd574a..d546f7787873 100644 --- a/tools/kvm/Makefile +++ b/tools/kvm/Makefile @@ -1,6 +1,5 @@ PROGRAM = kvm -OBJS += cpu.o OBJS += cpuid.o OBJS += interrupt.o OBJS += ioport.o diff --git a/tools/kvm/cpu.c b/tools/kvm/cpu.c deleted file mode 100644 index 631b2b1e954b..000000000000 --- a/tools/kvm/cpu.c +++ /dev/null @@ -1,14 +0,0 @@ -#include "kvm/cpu.h" - -#include - -struct cpu *cpu__new(void) -{ - return calloc(1, sizeof(struct cpu)); -} - -void cpu__reset(struct cpu *self) -{ - self->regs.eip = 0x000fff0UL; - self->regs.eflags = 0x0000002UL; -} diff --git a/tools/kvm/include/kvm/cpu.h b/tools/kvm/include/kvm/cpu.h deleted file mode 100644 index 9029f2069db3..000000000000 --- a/tools/kvm/include/kvm/cpu.h +++ /dev/null @@ -1,45 +0,0 @@ -#ifndef KVM__CPU_H -#define KVM__CPU_H - -#include - -enum eflag_bits { - EFLAGS_CF = (1UL << 0), /* Carry Flag */ - EFLAGS_PF = (1UL << 2), /* Parity Flag */ - EFLAGS_AF = (1UL << 4), /* Auxiliary Carry Flag */ - EFLAGS_ZF = (1UL << 6), /* Zero Flag */ - EFLAGS_SF = (1UL << 7), /* Sign Flag */ - EFLAGS_TF = (1UL << 8), /* Trap Flag */ - EFLAGS_IF = (1UL << 9), /* Interrupt Enable Flag */ - EFLAGS_DF = (1UL << 10), /* Direction Flag */ - EFLAGS_OF = (1UL << 11), /* Overflow Flag */ - EFLAGS_NT = (1UL << 14), /* Nested Task */ - EFLAGS_RF = (1UL << 16), /* Resume Flag */ - EFLAGS_VM = (1UL << 17), /* Virtual-8086 Mode */ - EFLAGS_AC = (1UL << 18), /* Alignment Check */ - EFLAGS_VIF = (1UL << 19), /* Virtual Interrupt Flag */ - EFLAGS_VIP = (1UL << 20), /* Virtual Interrupt Pending */ - EFLAGS_ID = (1UL << 21), /* ID Flag */ -}; - -struct cpu_registers { - uint32_t eax; - uint32_t ebx; - uint32_t ecx; - uint32_t edx; - uint32_t esp; - uint32_t ebp; - uint32_t esi; - uint32_t edi; - uint32_t eip; - uint32_t eflags; -}; - -struct cpu { - struct cpu_registers regs; -}; - -struct cpu *cpu__new(void); -void cpu__reset(struct cpu *self); - -#endif /* KVM__CPU_H */