diff options
author | miwi <miwi@FreeBSD.org> | 2012-05-25 23:50:37 +0800 |
---|---|---|
committer | miwi <miwi@FreeBSD.org> | 2012-05-25 23:50:37 +0800 |
commit | df533a9460087d39d9b4565948663d3f96324a8f (patch) | |
tree | dda80351ccfe1ac02151a7f01aa47881131ef315 /emulators/dosbox | |
parent | a3bd14dc66352cd0f59fac2a1ba235c035642a5d (diff) | |
download | freebsd-ports-gnome-df533a9460087d39d9b4565948663d3f96324a8f.tar.gz freebsd-ports-gnome-df533a9460087d39d9b4565948663d3f96324a8f.tar.zst freebsd-ports-gnome-df533a9460087d39d9b4565948663d3f96324a8f.zip |
- Fix build with clang
PR: 164243
Submitted by: Yuri Pankov <yuri.pankov@gmail.com>
Approved by: maintainer
Diffstat (limited to 'emulators/dosbox')
-rw-r--r-- | emulators/dosbox/files/patch-src-cpu_core_dynrec_risc_x64.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/emulators/dosbox/files/patch-src-cpu_core_dynrec_risc_x64.h b/emulators/dosbox/files/patch-src-cpu_core_dynrec_risc_x64.h new file mode 100644 index 000000000000..7facb653be77 --- /dev/null +++ b/emulators/dosbox/files/patch-src-cpu_core_dynrec_risc_x64.h @@ -0,0 +1,14 @@ +Index: src/cpu/core_dynrec/risc_x64.h +=================================================================== +--- src/cpu/core_dynrec/risc_x64.h (revision 3775) ++++ src/cpu/core_dynrec/risc_x64.h (working copy) +@@ -85,7 +85,8 @@ + + static INLINE void gen_reg_memaddr(HostReg reg,void* data) { + Bit64s diff = (Bit64s)data-((Bit64s)cache.pos+5); +- if ((diff<0x80000000LL) && (diff>-0x80000000LL)) { ++ if ((Bit64u)diff<0x0000000080000000ULL || ++ (Bit64u)diff>0xffffffff80000000ULL) { + cache_addb(0x05+(reg<<3)); + // RIP-relative addressing is offset after the instruction + cache_addd((Bit32u)(((Bit64u)diff)&0xffffffffLL)); |