x86: Use the right register type when initializing x86 kvm processes.
Functionally this doesn't matter, since no bitfields are used in the type and it devolves into just being a uint64_t, but we should use CR8 and not CR4 when initializing the CR8 register. Change-Id: Ifc7dc9072d552f7010afce9115427c8ed624ebb9 Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/38535 Maintainer: Gabe Black <gabe.black@gmail.com> Tested-by: kokoro <noreply+kokoro@google.com> Reviewed-by: Matthew Poremba <matthew.poremba@amd.com>
This commit is contained in:
@@ -387,7 +387,7 @@ X86_64Process::initState()
|
||||
|
||||
tc->setMiscReg(MISCREG_CR4, cr4);
|
||||
|
||||
CR4 cr8 = 0;
|
||||
CR8 cr8 = 0;
|
||||
tc->setMiscReg(MISCREG_CR8, cr8);
|
||||
|
||||
tc->setMiscReg(MISCREG_MXCSR, 0x1f80);
|
||||
|
||||
Reference in New Issue
Block a user