diff options
author | Jan Kiszka <jan.kiszka@web.de> | 2011-02-04 13:47:25 -0200 |
---|---|---|
committer | Aurelien Jarno <aurelien@aurel32.net> | 2011-02-08 12:36:48 +0100 |
commit | 29057492871e63caeab8ee7cdf1062c0270f19d8 (patch) | |
tree | a03fc3fdc1e49facbea3621bdacc59f76eaf2c57 /target-i386 | |
parent | f26e5a54f0554798a2e6f7a074b809b13635d007 (diff) |
x86: Fix MCA broadcast parameters for TCG case
When broadcasting MCEs, we need to set MCIP and RIPV in mcg_status like
it is done for KVM. Use the symbolic constants at this chance.
Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
Signed-off-by: Marcelo Tosatti <mtosatti@redhat.com>
Signed-off-by: Aurelien Jarno <aurelien@aurel32.net>
Diffstat (limited to 'target-i386')
-rw-r--r-- | target-i386/helper.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target-i386/helper.c b/target-i386/helper.c index 1217452e71..f0c546df5c 100644 --- a/target-i386/helper.c +++ b/target-i386/helper.c @@ -1147,8 +1147,8 @@ void cpu_inject_x86_mce(CPUState *cenv, int bank, uint64_t status, if (cenv == env) { continue; } - - qemu_inject_x86_mce(env, 1, 0xa000000000000000, 0, 0, 0); + qemu_inject_x86_mce(env, 1, MCI_STATUS_VAL | MCI_STATUS_UC, + MCG_STATUS_MCIP | MCG_STATUS_RIPV, 0, 0); } } } |