diff options
author | Martin Wilke <miwi@FreeBSD.org> | 2012-05-25 15:50:37 +0000 |
---|---|---|
committer | Martin Wilke <miwi@FreeBSD.org> | 2012-05-25 15:50:37 +0000 |
commit | ae5f10264316e029b905ee1791652164f6f705d8 (patch) | |
tree | 10b590cd0181fff3d4b9835353aeb5d3a226e605 /emulators | |
parent | f1c912e32c69f7d0e11f9e6de1464a0fcfcfabb0 (diff) |
- Fix build with clang
PR: 164243
Submitted by: Yuri Pankov <yuri.pankov@gmail.com>
Approved by: maintainer
Notes
Notes:
svn path=/head/; revision=297437
Diffstat (limited to 'emulators')
-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)); |