diff options
author | Eduardo Habkost <ehabkost@redhat.com> | 2015-05-29 16:31:12 -0300 |
---|---|---|
committer | Eduardo Habkost <ehabkost@redhat.com> | 2015-06-02 15:15:52 -0300 |
commit | 458cf469f4a1cb520b07092f5537c5a6d2389d23 (patch) | |
tree | 149f539c61a0d0b2fdc15c1e6addf7e7d5e0a231 /ioport.c | |
parent | 0e3bd56294230ad0ee20fce587879c29a83a0d8b (diff) |
target-i386: Fix signedness of MSR_IA32_APICBASE_BASE
Existing definition triggers the following when using clang
-fsanitize=undefined:
hw/intc/apic_common.c:314:55: runtime error: left shift of 1048575 by 12
places cannot be represented in type 'int'
Fix it so we won't try to shift a 1 to the sign bit of a signed integer.
Suggested-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Igor Mammedov <imammedo@redhat.com>
Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
Diffstat (limited to 'ioport.c')
0 files changed, 0 insertions, 0 deletions