mirror of
https://github.com/clearlinux/kvmtool.git
synced 2026-10-16 21:30:53 +00:00
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>
15 lines
218 B
C
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;
|
|
}
|