qemu-e2k/target-i386
Eduardo Habkost 712b4243c7 target-i386: Don't left shift negative constant
Left shift of negative values is undefined behavior. Detected by clang:
  qemu/target-i386/translate.c:2423:26: runtime error:
    left shift of negative value -8

This changes the code to reverse the sign after the left shift.

Signed-off-by: Eduardo Habkost <ehabkost@redhat.com>
2015-10-27 15:52:11 -02:00
..
arch_dump.c
arch_memory_mapping.c
bpt_helper.c target-i386: Ensure always-1 bits on DR6 can't be cleared 2015-10-23 12:59:27 -02:00
cc_helper_template.h
cc_helper.c
cpu-qom.h kvm: Allow the Hyper-V vendor ID to be specified 2015-10-19 10:13:07 +02:00
cpu.c target-i386: Use 1UL for bit shift 2015-10-23 13:07:27 -02:00
cpu.h target-i386: Check CR4[DE] for processing DR4/DR5 2015-10-23 12:59:27 -02:00
excp_helper.c
fpu_helper.c
gdbstub.c
helper.c target-i386: Move breakpoint related functions to new file 2015-10-02 16:22:01 -03:00
helper.h target-i386: Check CR4[DE] for processing DR4/DR5 2015-10-23 12:59:27 -02:00
int_helper.c
kvm_i386.h
kvm-stub.c
kvm.c kvm: Allow the Hyper-V vendor ID to be specified 2015-10-19 10:13:07 +02:00
machine.c target-i386: Introduce cpu_x86_update_dr7 2015-10-23 12:59:27 -02:00
Makefile.objs target-i386: Move breakpoint related functions to new file 2015-10-02 16:22:01 -03:00
mem_helper.c
misc_helper.c target-i386: Move breakpoint related functions to new file 2015-10-02 16:22:01 -03:00
monitor.c hmp: implemented io apic dump state for TCG 2015-09-25 12:04:42 +02:00
ops_sse_header.h
ops_sse.h
seg_helper.c target-i386: Introduce cpu_x86_update_dr7 2015-10-23 12:59:27 -02:00
shift_helper_template.h
smm_helper.c target-i386: allow any alignment for SMBASE 2015-10-23 12:59:26 -02:00
svm_helper.c
svm.h
TODO
translate.c target-i386: Don't left shift negative constant 2015-10-27 15:52:11 -02:00