Searched hist:9683 (Results 1 - 2 of 2) sorted by relevance

/gem5/src/cpu/kvm/
H A Dbase.cc9683:2c52e4537e6c Wed May 01 18:02:00 EDT 2013 Andreas Sandberg <andreas@sandberg.pp.se> kvm: Add checkpoint debug print

Add a debug print (when the Checkpoint debug flag is set) on serialize
and unserialize. Additionally, dump the KVM state before
serializing. The KVM state isn't dumped after unserializing since the
state is loaded lazily on the next KVM entry.
/gem5/src/arch/x86/isa/decoder/
H A Dtwo_byte_opcodes.isa14164:9683bde0d48a Wed Aug 14 18:32:00 EDT 2019 Gabe Black <gabeblack@google.com> x86: Make unsuccessful CPUID instructions zero the result.

The previous implementation left the registers unmodified which is
technically correct since there is no defined behavior in that case or
a fault to raise. That would make what happened when the following code
consumed the result unpredictable because it would depend on what junk
values were left in the registers. This was originally not a problem
since the space of supported functions were tightly packed, but someone
added a new function with a gap without adjusting this behavior.

This change makes CPUID zero out RAX, RBX, RCX, and RDX when it fails.
That should be more predictable and cause less flakey failures.

Change-Id: If6ffb17c2969d34aff1600c0ffc32333d0b9be44
Reviewed-on: https://gem5-review.googlesource.com/c/public/gem5/+/20168
Reviewed-by: Jason Lowe-Power <jason@lowepower.com>
Reviewed-by: Pouya Fotouhi <pfotouhi@ucdavis.edu>
Maintainer: Gabe Black <gabeblack@google.com>
Tested-by: kokoro <noreply+kokoro@google.com>

Completed in 24 milliseconds