Files
kvmtool/cpu.c
T
Pekka Enberg b6e5a081c5 Move CPU emulation code to cpu.c
The kvm.c file is getting bigger so move CPU emulation code to a separate file.

Signed-off-by: Pekka Enberg <penberg@cs.helsinki.fi>
2015-06-01 16:39:38 +01:00

15 lines
218 B
C

#include "kvm/cpu.h"
#include <stdlib.h>
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;
}