krcroft
e402ad9f56
Remove unecessary dereferences and casts
2020-04-15 14:26:29 +02:00
krcroft
1ea78a87fa
Fix alignment when writing the jump value to memory
2020-04-15 14:26:29 +02:00
krcroft
31b27e6409
Fix alignment when adding a jump value to the cache
2020-04-15 14:26:29 +02:00
krcroft
f9a1935c8e
Fix alignment when saving the branch value
2020-04-15 14:26:28 +02:00
krcroft
aadf4edbed
Fix alignment when assigning a cache diff value
2020-04-15 14:26:28 +02:00
krcroft
34d46ecd7f
Fix alignment when incrementing values in the cache
2020-04-15 14:26:28 +02:00
krcroft
86249ec821
Fix alignment when fetching values in the decoder
2020-04-15 14:26:28 +02:00
krcroft
94c404577d
Fix alignment when incrementing the invalidation map
...
We also eliminate the endian-branch because endian differences are
already taken care of in the host_add* functions.
2020-04-15 14:26:28 +02:00
krcroft
0d004f4c60
Fix alignment when writing to the cache
2020-04-15 14:26:28 +02:00
krcroft
32692cc50e
Fix alignment when reading values from the write-map
2020-04-15 14:26:28 +02:00
Joshua Fern
f2029d71d8
Update copyright dates to 2020
2020-03-07 00:18:01 +01:00
Patryk Obara
e9d18387b7
Fix format warnings in cpu (dyn_fpu_esc3)
2020-03-01 21:23:04 +01:00
Patryk Obara
7f0d07fd1b
Fix format warnings in cpu (dh_fpu_esc3)
2020-03-01 21:23:04 +01:00
Patryk Obara
5e41eaf150
Merge branch 'svn/trunk' r4333
...
Conflict resolutions required some algorithm adjustments.
2020-02-25 11:11:00 +01:00
Peter Veenstra
5afd7057f3
Optimize xchg a bit. (jmarsh)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4333
2020-02-24 20:02:58 +00:00
Patryk Obara
7677511aa3
Initialize imm variable
...
This is a small issue pointed out by Coverity; this variable might be
later used uninitialized in several places.
Making this change to test if Coverity updates report summary only after
the numbers actually changed (we just had fresh scan, but Coverity keeps
showing summary from few days ago).
2020-02-10 03:23:54 +01:00
Patryk Obara
e7b8d546a4
Remove usage of register storage specifier
...
This keywords is only a hint, was used in C in 1970s, but is useless
nowadays. Some reports indicate, that GCC never used it to actually
treat variable as a register.
It was deprecated from C++ in 2009:
http://www.open-std.org/jtc1/sc22/wg21/docs/papers/2014/n4193.html#809
It was removed from language in C++17, and will likely see new meaning
in some future standard, similar to how 'auto' got replaced in C++11.
2020-02-02 15:16:29 +01:00
krcroft
df9fac4e61
Fix NULL issues in CPU emulation code
2020-01-22 09:40:00 +01:00
Patryk Obara
02414201e1
Remove unused functions in cpu area
...
Latest change from upstream made removed last usage of these functions.
Only ifdef-out them, in case future versions in upstream will use these
functions again.
2019-12-29 22:43:07 +01:00
Patryk Obara
f2601b274f
Merge branch 'svn/trunk' r4302
2019-12-29 22:33:33 +01:00
Peter Veenstra
19b9bde38a
Fix xcmpchg in dyn_x86 core. Allows Quickview to work in that core; reported by krcroft. Fixed/patch by jmarsh. Thanks!
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4302
2019-12-29 19:53:09 +00:00
Patryk Obara
61511a4bdf
Merge branch 'svn/trunk' r4301
2019-12-10 15:27:14 +01:00
Peter Veenstra
77a46559a6
Additional refinements and speed ups. Thanks jmarsh!
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4301
2019-12-10 14:07:20 +00:00
Patryk Obara
4add527371
Fix wrong function name in the exception log
...
Bug report: https://sourceforge.net/p/dosbox/bugs/518/
2019-12-04 06:11:01 +01:00
Patryk Obara
cdc193170c
Merge branch 'svn/trunk' r4293
2019-11-21 20:53:21 +01:00
Peter Veenstra
8cb2e08f31
Refinements of commit 4291, so that precission can be specified as well and less fixed defines are used
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4292
2019-11-19 16:16:06 +00:00
Peter Veenstra
01fe58047e
Try to solve the Bitu formatting warning on all supported platforms (both 32 and 64 bit). Did a few places. Still a lot to go. Changed default display of Bitu to be unsigned instead of signed.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4291
2019-11-18 21:08:57 +00:00
Patryk Obara
ea06a145b6
Fix several printf format warnings
2019-11-16 04:31:19 +01:00
Patryk Obara
8824504474
Silence several sometimes-uninitialized warnings
...
GCC compiler reports these as:
warning: variable (…) is used uninitialized whenever switch default
is taken
2019-11-16 04:31:19 +01:00
Patryk Obara
97ded39c2e
Remove unused variable
2019-11-16 04:31:19 +01:00
Patryk Obara
d63849ea72
Remove unused function
2019-11-16 04:31:19 +01:00
Patryk Obara
41126f8ff9
Fix unused-function warning
...
This function is used only inside x86 ifdef, so move it to prevent the
warning. Also, use this opportunity to improve readability a bit.
2019-11-16 04:31:19 +01:00
Patryk Obara
ce1deb1516
Silence a number of switch warnings
...
Avoid "default" case when only 1-2 enumarations are missing.
2019-11-16 04:31:19 +01:00
Patryk Obara
4a01b6a00d
Prevent potential null pointer dereference
...
This null-check resolves a potential issue detected by static analysis.
It might be the case, that crash never happens due to the way this
static function is used at the moment, and because DYNFLG_CHANGED is being
cleared in dnew->genreg->Clear() few lines before, but the crash might
still happen if initial state of flags is inconsistent or surrounding
code will be changed even a little bit.
This nullcheck makes the code more robust at no performance penalty.
2019-11-02 19:29:03 +01:00
Patryk Obara
9099f0620e
Merge branch 'svn/trunk'
2019-10-20 07:15:43 +02:00
Peter Veenstra
5b690f936a
fix externals.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4274
2019-10-19 20:08:46 +00:00
Patryk Obara
acbef2169d
Merge branch 'svn/trunk'
2019-10-17 18:36:45 +02:00
Peter Veenstra
6ac1bcf9e7
Fix boundary checks for word/dword memory access. Speeds up dynamic 32 bit core a bit (thanks jmarsh).
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4272
2019-10-16 14:20:00 +00:00
Patryk Obara
e4044f7d8d
Merge branch 'svn/trunk'
2019-10-10 18:43:08 +02:00
Peter Veenstra
26a9f75b50
A little cleanup and small speed up (jmarsh)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4271
2019-10-10 15:54:19 +00:00
Patryk Obara
a4a6bed5c1
Merge branch 'svn/trunk'
2019-10-01 18:11:50 +02:00
Peter Veenstra
6243fa9711
Some more cleanups and memleak fixes.
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4265
2019-10-01 13:05:08 +00:00
Patryk Obara
08925b24a4
Merge branch 'svn/trunk'
2019-09-30 22:21:21 +02:00
Peter Veenstra
fe177b4136
Add 64-bit support to dynamic_x86 core from vogons topic 67673. Thanks jmarsh!
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4260
2019-09-30 18:30:11 +00:00
Patryk Obara
b62a637157
Import svn:ignore props to .gitignore files
2019-09-15 20:34:57 +02:00
Sjoerd van der Berg
bca40f5561
Fix flag behaviour of several shift/rotate instructions, cause exceptions and fix potention 'pop ss' problems
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4256
2019-09-08 12:42:21 +00:00
Peter Veenstra
05f15ac4c0
Correct a little bug that caused graphics corruption in win95 with s3 driver. (jmarsh)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4252
2019-06-30 11:31:09 +00:00
Peter Veenstra
5888c05dd1
Add some missing va_ends. Reported by jmarsh
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4227
2019-05-23 12:51:10 +00:00
Peter Veenstra
fa8b4c5d00
Move all stack alignment operations into one place and some optimalisations (thanks jmarsh)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4226
2019-05-20 19:10:56 +00:00
Peter Veenstra
2aaa951fd4
Rewrite pop_ev so it can trigger pagefaults again. Fixes win3.11. (jmarsh)
...
Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@4219
2019-04-26 14:06:11 +00:00