diff options
| author | Joe Richey <joerichey@google.com> | 2022-12-24 16:16:04 -0800 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2023-01-11 09:59:38 +0100 |
| commit | b585edca34a817fdb751dfe94fbd3cde32ffe60d (patch) | |
| tree | 6b154790e20b49c6f1aeed2e7aa427965e3a4c5f /hw/core/cpu-common.c | |
| parent | acedc9a660f83b362a1dec4b699e85d5dd82a067 (diff) | |
| download | focaccia-qemu-b585edca34a817fdb751dfe94fbd3cde32ffe60d.tar.gz focaccia-qemu-b585edca34a817fdb751dfe94fbd3cde32ffe60d.zip | |
i386: Emit correct error code for 64-bit IDT entry
When in 64-bit mode, IDT entiries are 16 bytes, so `intno * 16` is used for base/limit/offset calculations. However, even in 64-bit mode, the exception error code still uses bits [3,16) for the invlaid interrupt index. This means the error code should still be `intno * 8 + 2` even in 64-bit mode. Resolves: https://gitlab.com/qemu-project/qemu/-/issues/1382 Signed-off-by: Joe Richey <joerichey@google.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Diffstat (limited to 'hw/core/cpu-common.c')
0 files changed, 0 insertions, 0 deletions