platform/kvm: remove the unused field

PiperOrigin-RevId: 336366624
This commit is contained in:
Andrei Vagin
2020-10-09 14:34:51 -07:00
committed by gVisor bot
parent b576de907c
commit a0ffc84adf
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -92,7 +92,6 @@ type kernelEntry struct {
// scratch space for temporary usage.
scratch0 uint64
scratch1 uint64
// stackTop is the top of the stack.
stackTop uint64
@@ -38,7 +38,6 @@ func Emit(w io.Writer) {
e := &kernelEntry{}
fmt.Fprintf(w, "\n// CPU entry offsets.\n")
fmt.Fprintf(w, "#define ENTRY_SCRATCH0 0x%02x\n", reflect.ValueOf(&e.scratch0).Pointer()-reflect.ValueOf(e).Pointer())
fmt.Fprintf(w, "#define ENTRY_SCRATCH1 0x%02x\n", reflect.ValueOf(&e.scratch1).Pointer()-reflect.ValueOf(e).Pointer())
fmt.Fprintf(w, "#define ENTRY_STACK_TOP 0x%02x\n", reflect.ValueOf(&e.stackTop).Pointer()-reflect.ValueOf(e).Pointer())
fmt.Fprintf(w, "#define ENTRY_CPU_SELF 0x%02x\n", reflect.ValueOf(&e.cpuSelf).Pointer()-reflect.ValueOf(e).Pointer())
fmt.Fprintf(w, "#define ENTRY_KERNEL_CR3 0x%02x\n", reflect.ValueOf(&e.kernelCR3).Pointer()-reflect.ValueOf(e).Pointer())