Johannes Obermayr
9fd2f3dd8a
Don't use build date on openSUSE.
...
Fixes RPMLINT warning:
pcsx2.i586: W: file-contains-date-and-time /usr/bin/pcsx2
Your file uses __DATE and __TIME__ this causes the package to rebuild when not needed
2014-09-17 22:37:34 +02:00
Johannes Obermayr
7b1d3ba7ea
Do commits 2bc2047
and f287754
the right way ...
2014-09-16 19:11:11 +02:00
ramapcsx2
12e8f7d0b4
"Support all functions of type D and E codes" for cheat patches (pnach) by
...
tadatada
2014-09-16 11:03:10 +02:00
Sacha
bf7c29e4cd
Disable memcmp_mmx for non-msvc compilers and 64-bit. Remove MemcpyFast.S (Linux).
2014-09-16 17:53:54 +10:00
Johannes Obermayr
2bc2047770
cmake: Fix RPATH/RUNPATH issue with openSuse wxWidgets libdir.
...
Gregory: Add an if clause to only change the rpath on openSuse
For me it doesn't follow the FHS => http://www.tldp.org/HOWTO/HighQuality-Apps-HOWTO/fhs.html
2014-09-14 13:12:26 +02:00
ramapcsx2
98d22f8b2e
Merge pull request #215 from xsacha/memcpy
...
Remove some slow, redundant memcpy implementations: memcpy_const/memcpy_...
2014-09-12 19:57:57 +02:00
Kingcom
8dba78abce
Add step out feature
2014-09-11 14:17:43 +02:00
Kingcom
d3ffd13c25
Add stack frames list to debugger
2014-09-11 14:17:43 +02:00
Kingcom
4768f293bf
Port stack walker from PPSSPP
2014-09-11 14:15:07 +02:00
ramapcsx2
f7192b82b1
Merge pull request #274 from Kingcom/Scrollbars
...
Fix column width in debugger
2014-09-06 00:35:47 +02:00
ramapcsx2
08dc8b40e4
Merge pull request #272 from Kingcom/Scanning
...
Complete function scanning
2014-09-06 00:32:51 +02:00
uyjulian
f3a50a01a7
cmake: Use previous macros in CMakeLists.txt files
...
Gregory: add a c lib for zzogl-pg-cg replayer
2014-09-05 20:16:23 +02:00
Kingcom
b717691901
Fix duplicate f21/fcr21/vf21
2014-08-30 12:49:59 +02:00
Sacha
5287de930b
Create a Math.h utility. Use it for count leading sign bits, used in MMI.
2014-08-28 00:42:53 +10:00
Sacha
ad3b76c4d8
Remove all custom memcpy usage from core pcsx2 and remove memcpy_fast from plugins.
2014-08-27 13:45:23 +10:00
Sacha
3f7cb991e4
Remove some slow, redundant memcpy implementations: memcpy_const/memcpy_qwc/memcpy_aligned.
2014-08-27 13:13:48 +10:00
ramapcsx2
ec7fb80a5b
Merge pull request #271 from Kingcom/Threads
...
Add threads list to debugger
2014-08-25 15:56:00 +02:00
ramapcsx2
d694a3a166
Merge pull request #263 from Kingcom/Recompiler
...
Fix recompiler breakpoint flushing logic (debugger related)
2014-08-25 15:33:39 +02:00
Kingcom
d8f3e22f14
Fix column width in debugger lists when scrollbars are present
2014-08-23 15:03:57 +02:00
Pseudonym
3fa5816aab
Merge pull request #265 from Sonicadvance1/x86_64-vtlb
...
Get the VTLB working on x86_64.
2014-08-22 22:40:45 +01:00
Pseudonym
e5f7057539
Merge pull request #255 from Kingcom/Disasm
...
Add a couple of pseudo instructions to the R5900 disassembler
2014-08-22 22:35:52 +01:00
Kingcom
259a699613
Add shared source and dest register simplifications
2014-08-22 23:28:32 +02:00
Kingcom
d1619af18c
Simplify disassembly of memory access with zero offset
2014-08-22 23:28:28 +02:00
Ryan Houdek
bddb2504b5
Get the VTLB working on x86_64.
...
VTLB does some nonsense with signed integers for the pointers.
We've got to make sure to set the signed bit in the correct bit on 64bit pointers so it works.
2014-08-22 15:31:40 -05:00
Kingcom
769cb6a369
Port the rest of the function scanning over from PPSSPP
2014-08-22 22:23:49 +02:00
Pseudonym
4512306207
Merge pull request #248 from Kingcom/OpcodeFlags
...
Add flags to R5900 opcodes, use them for the debugger
2014-08-22 20:55:08 +01:00
Kingcom
430c617a95
Use flags for breakpoints and memchecks in the recompiler
2014-08-22 21:50:09 +02:00
Kingcom
9fde236512
Update analyst to use new flags
2014-08-22 21:50:09 +02:00
Kingcom
72c2158b17
Add fcr registers to DebugInterface and rename others
2014-08-22 21:50:06 +02:00
Kingcom
f7ac17b6be
Fill in flags for most debugger relevant opcodes
2014-08-22 21:50:05 +02:00
Kingcom
1e3e5c92a8
Add thread list to debugger
2014-08-22 16:11:16 +02:00
Kingcom
5f7a3a8ca9
Read EE threads from bios (thanks @gregory38)
2014-08-22 16:11:13 +02:00
Kingcom
5b14f7de64
Add a list with bios version specific information
2014-08-22 16:11:10 +02:00
Sacha
f484f35d85
Remove some unused code such as data moves and tags in iCore.
...
The code was sitting there only serving to confuse people. The tags were a way of setting an 'isXMMreg' inside a function and the values actually didn't mean anything.
2014-08-22 00:42:40 +10:00
Kingcom
9e6fac5faa
Fix recompiler breakpoint flushing logic
2014-08-20 17:12:48 +02:00
Kingcom
b72963ee5f
Make simplifcations in the disassembler optional
2014-08-19 15:45:50 +02:00
Kingcom
a696bf0d02
Add branch pseudo opcodes to R5900 disassembler
2014-08-19 14:58:00 +02:00
Kingcom
b0cef1b143
Add a couple of pseudo instructions to the R5900 disassembler and display signed immediates as signed
2014-08-19 14:58:00 +02:00
Sacha
7a260c9885
Remove redundant memzero_ptr. All compilers use SSE implementation anyway.
2014-08-17 23:23:55 +10:00
Tobias Jakobi
6eb0ecbe7c
debugger: fix static/extern issue which broke compilation
...
Previously (on gcc) compilation would fail with:
pcsx2/DebugTools/DisR5900asm.cpp:58:37: error: ‘R5900::GPR_REG’ was
declared ‘extern’ and later ‘static’ [-fpermissive]
2014-08-17 14:52:13 +02:00
Kingcom
a8c5454724
Add flags field to R5900 opcodes
2014-08-16 20:33:45 +02:00
Pseudonym
05b33012b7
Merge pull request #241 from Kingcom/Debugger
...
Always enable debugger
2014-08-15 23:31:23 +01:00
Pseudonym
91fcad0a93
You know that commit where I removed the GTE? Apparently I didn't.
2014-08-15 23:22:25 +01:00
Kingcom
f5fe75a73b
Allow to share writing to the ISO through an ini option
2014-08-15 23:52:45 +02:00
Kingcom
df0fb9551f
Always enable debugger
2014-08-15 21:25:30 +02:00
Pseudonym
7e5b6dee9c
Removed System.map symbol file support.
...
I'm not sure what this is actually to be honest, ancient release notes say it was ps2linux related but I don't think this is Linux System.map compatible... regardless ps2linux isn't exactly high on our priority list.
2014-08-15 18:56:42 +01:00
Pseudonym
174e121034
Load symbols from ELFs. (Thanks Kingcom for this one liner.)
2014-08-15 18:44:01 +01:00
Pseudonym
9ebd9c4447
Removed long disabled code for inserting command line parameters for ELFs into EE memory. We'd have to do this completely differently in the current system anyway.
2014-08-15 18:41:24 +01:00
Pseudonym
4400b56fb5
Removed actual ELF loading from the ELF parser as we leave this up to the BIOS now.
2014-08-15 18:39:24 +01:00
Pseudonym
4de63714ce
Replaced some printf(string)s with printf("%s", string) in R5900 block dumping.
2014-08-15 17:37:07 +01:00
Pseudonym
0ca72a7d60
Merge pull request #240 from Kingcom/DisR5900Removal
...
Remove redundant Disr5900
2014-08-15 16:55:12 +01:00
Pseudonym
2aa34186e1
Scrapped abortive GTE (PSX GPU) support so that certain people can stop fiddling with untestable code. We don't know whether the PS2 even has a hardware GTE and thanks to the miracle that is source control we can revive this module if needed.
2014-08-15 16:47:42 +01:00
Pseudonym
adc76243dc
Merge pull request #239 from xsacha/stats_removal
...
Remove Stats.{cpp,h}, which was not being used by anything.
2014-08-15 16:35:33 +01:00
Pseudonym
565e72d9d7
Merge pull request #209 from xsacha/jASSUME
...
Remove deprecated jASSUME from pcsx2 core. It is still used in some plugins.
[I should note that this may change the performance of the devel target on msvc as jASSUME was compiling to __assume on devel and release while pxAssume only compiles to __assume on release]
2014-08-15 14:38:06 +01:00
Kingcom
2d7ef30e59
Remove redundant Disr5900
2014-08-15 15:23:45 +02:00
Pseudonym
9284a01346
Removed redundant initialisation code (covered in the resets), reverted a little pointless shuffling.
2014-08-15 14:09:18 +01:00
Pseudonym
b574d06f5f
Merge pull request #214 from xsacha/init_vars
...
Init vars directly instead of using dedicated functions
2014-08-15 14:04:06 +01:00
Pseudonym
1c29874541
Removed unused variables.
2014-08-15 13:55:19 +01:00
Pseudonym
08d8026fa3
Removed a couple of unhelpful comments from today and a bunch from 2003.
2014-08-15 13:55:16 +01:00
Pseudonym
2286ac1c49
Merge pull request #221 from xsacha/vuops-2
...
Improve readability in the VUops.
2014-08-15 13:55:14 +01:00
Sacha
8d616133d6
Remove Stats.{cpp,h}, which was not being used by anything.
2014-08-15 18:08:03 +10:00
Sacha
7568f6f2ec
Remove deprecated jASSUME from pcsx2 core. It is still used in some plugins
2014-08-15 14:32:56 +10:00
Sacha
3271048ab6
Remove init procedures from Hw.cpp
2014-08-15 14:17:35 +10:00
Sacha
791bfc181b
Use a function with u32 inputs and make sure all the casts match, because..
2014-08-15 13:55:14 +10:00
archshift
fb9c24b900
Removed `using std::min/max` from PCH
2014-08-14 14:55:52 -07:00
Pseudonym
05d5f06bb5
Merge pull request #224 from xsacha/sse2-force
...
Require SSE2 instead of SSE+MMX. SSE2 implies SSE+MMX is supported, so all checks of of 'SSE' and 'MMX' can be removed.
2014-08-14 22:43:06 +01:00
Pseudonym
9dd9448d02
Merge pull request #213 from xsacha:patch_obsolete
...
Remove cheat patches obsoleted by a change in the UI, more than 4 years ago
2014-08-14 21:23:20 +01:00
Pseudonym
cb2593f2bb
Merge pull request #210 from xsacha:plugin_cleanup
...
Some cleanup to improve readability.
2014-08-14 20:37:41 +01:00
archshift
466e6008ad
SamplProf.cpp: Removed "using namespace std"
2014-08-14 11:23:50 -07:00
archshift
396e42e17c
sVU_zerorec.cpp: Removed "using namespace std"
2014-08-14 11:23:50 -07:00
archshift
f808593b2d
DisR5900asm.cpp: Removed "using namespace std"
2014-08-14 11:23:50 -07:00
archshift
7de0065216
Elfheader.cpp: removed "using namespace std"
2014-08-14 11:23:50 -07:00
archshift
285e07be76
MicroVU: removed usage of "using namespace std"
2014-08-14 11:23:50 -07:00
Pseudonym
66765d827b
Merged pull request #199 from xsacha/oldcode
...
Remove some horrible old code.
2014-08-14 19:12:19 +01:00
Pseudonym
19ea90aff5
Merge pull request #195 from Kingcom/DebuggerLists
...
Abstract list view behavior
2014-08-14 18:57:50 +01:00
Pseudonym
ad58118df0
Merge pull request #183 from Kingcom/Assembler
...
Add integrated assembler
2014-08-14 18:47:38 +01:00
Kingcom
2a0be7e91e
Abstract list view behavior
2014-08-14 18:32:21 +02:00
Lioncash
54798d4743
Core: Get rid of C void parameter carryovers
2014-08-14 03:21:09 -04:00
Sacha
6f5e0f96b4
Require SSE2 instead of SSE+MMX. SSE2 implies SSE+MMX is supported, so all checksOF of 'SSE' and 'MMX' can be removed.
...
SSE2 is supported on more than decade-old x86 CPUs. Almost(?) every x86 CPU since PS2 was released.
Certainly running the existing code on a non-SSE2 computer resulted in most of the code being disabled anyway and the emulator being incredibly slow.
This removal will hopefully allow the removal of MMX/3DNow code as it has been superceded.
2014-08-14 16:01:34 +10:00
Sacha
9dea86068a
Remove giant min/max defines and make their usage more understandable.
2014-08-14 12:46:57 +10:00
Sacha
af3482b7cd
Improve readability in the VUops.
2014-08-14 10:58:31 +10:00
ramapcsx2
d247a79e48
Merge pull request #187 from lioncash/bool
...
Use bool constants instead of magic numbers in microVU
2014-08-13 13:17:24 +02:00
Sacha
a3bc6a73a3
Remove some horrible old code.
...
Remove an assert define and instead use the static_assert that all compilers provide.
As an added bonus, assert messages\!
2014-08-13 13:55:32 +10:00
Sacha
e1bf7daf59
Remove cheat patches that were obsoleted by a change in the UI, more than 4 years ago.
2014-08-13 13:27:01 +10:00
Sacha
9dcaaedf06
Some cleanup to improve readability.
...
Remove old compiler hacks that are no longer needed.
Fix up some spacing and comments that hid code.
Fix a critical bug in deprecated plugin peopsSPU.
2014-08-13 13:05:33 +10:00
ramapcsx2
9c58537078
PCSX2: Removed the "managed VSync" option. I don't think it saw much use
...
anyway.
2014-08-12 14:53:51 +02:00
ramapcsx2
c46749f236
Merge pull request #196 from archshift/using
...
Removed uses of `using std::string`
2014-08-12 10:40:49 +02:00
David Quintana
c09469a71c
Merge pull request #204 from archshift/auto-itr
...
Simplified loops by declaring iterators with 'auto'
2014-08-10 22:07:31 +02:00
archshift
afbb5e2721
Simplified loops by declaring iterators with 'auto'
2014-08-10 01:48:57 -07:00
Gregory Hainaut
b2df6152af
Merge pull request #191 from Sonicadvance1/remove-stupid-define
...
Removes the usage of __LINUX__ define
2014-08-06 21:56:16 +02:00
ramapcsx2
98aad6ef76
Merge pull request #197 from archshift/no-comprende
...
PrecompiledHeader.h: Add a comment to clarify redefinition of BOOL
2014-08-06 13:19:24 +02:00
archshift
730d7ec528
Added comment explaining redefinition of BOOL
2014-08-06 04:15:23 -07:00
archshift
c911ba4747
Revert "PrecompiledHeader.h: Removed WTF-redefines"
...
This reverts commit 9fdb318776
.
2014-08-06 04:12:38 -07:00
archshift
9fdb318776
PrecompiledHeader.h: Removed WTF-redefines
...
Removed redefinition of TRUE and FALSE, and removed typedef of int to BOOL
2014-08-06 03:46:15 -07:00
archshift
d92a621a70
DisR5900: removed `using std::string`
2014-08-06 03:14:11 -07:00
archshift
7734f2eed8
Gif.cpp: removed redundant `using std::min`
2014-08-06 03:06:58 -07:00
archshift
10dc0bcfa2
Removed `using std::string`
...
`using` classes from namespaces can lead to lack of clarity as to where
the class is coming form.
2014-08-06 03:01:48 -07:00
Ryan Houdek
3d37a6ce27
Removes the usage of __LINUX__ define
...
This is defined and set it a ton of different places.
It's checked in a whole lot more
Instead just use __linux__ like a real project should
2014-08-03 13:20:36 -05:00
Gregory Hainaut
82c7bcd761
wx3.0: compilation fix for arch linux
...
* Manually cast WxGetTranslation
* Accept string as format parameter of pxWindowTextWriter
* Manually convert wxString to wide string
Note: Wx setup.h is not the same between Debian and Arch. Unfortunately it
generated various compilations errors on wx code.
Close issue #172
2014-08-03 14:54:44 +02:00
Gregory Hainaut
3c9367825c
wx3.0: partially revert 1fda2a611c
...
I wrongly removed code that set the language directory on Windows.
Linux uses another way (don't know which one)
close issue #189
2014-08-03 14:53:06 +02:00
Gregory Hainaut
61088b71c6
cmake: gcc warning management
...
* disable unused value warning (don't like the syntax 0&&)
* remove -Wno-ignored-attributes (c option). It replaces gcc warning
by an unsupported option warning...
2014-08-03 14:43:08 +02:00
ramapcsx2
67f934a902
Fixed a missing word in gamefixes panel
2014-08-01 15:04:34 +02:00
Lioncash
ed65172308
Use bool constants instead of magic numbers in microVU
2014-07-31 20:34:16 -04:00
Kingcom
7d49f75317
Replace square character with unicode value
2014-07-31 20:38:26 +02:00
Kingcom
3e883e4be4
Integrate assembler
2014-07-31 20:38:26 +02:00
Pseudonym
de5a55c03e
Merge pull request #176 from Sonicadvance1/x86_64-recompiler-casts
...
Fix a bunch of casts in the x86 recompiler core.
2014-07-31 15:03:26 +01:00
Pseudonym
4d06f982db
Merge pull request #181 from lioncash/elif
...
Remove 'elif' define from Pcsx2Defs and microvu_misc.h
2014-07-31 14:21:47 +01:00
Pseudonym
1fb057462a
Merge pull request #180 from lioncash/const
...
Apply const to some functions in Gif_Unit.h
2014-07-31 13:47:10 +01:00
Kingcom
e862047142
Add write32 method to DebugInterface
2014-07-31 14:10:36 +02:00
Kingcom
90eb776310
Add assembler
2014-07-31 14:10:36 +02:00
Lioncash
ac558afc8a
Remove 'elif' define from Pcsx2Defs and microvu_misc.h
2014-07-30 23:44:04 -04:00
Lioncash
10fd86fd68
Apply const to some functions in Gif_Unit.h
2014-07-30 22:52:00 -04:00
Ryan Houdek
08a6ff6e6c
Fix a bunch of casts in the x86 recompiler core.
...
There are a load of casts from pointers to 'int' and 'u32' in the JIT core.
This takes a better practices approach to the problem and casts to uptr instead.
Zero functionality change of course, just changes all of these terrible casts to going to uptr which makes the casting style consistant and work on
both x86_32 and x86_64.
This obviously doesn't work around the issue of the recompiler not running on x86_64, but we need compiling before we delve further.
2014-07-30 18:32:36 -05:00
Ryan Houdek
7d13f96e28
Fixes a few casts in the DisassemblyDialog and PluginSelectorPanel.
...
We are casting wxWidget's events userdata from void* to integers.
So use uptr instead since it'll work on both x86_32 and x86_64.
2014-07-30 18:25:13 -05:00
Pseudonym
e726f82344
Merge pull request #161 from Kingcom/Debugger
...
Debugger enhancements
2014-07-30 18:24:38 +01:00
Gregory Hainaut
5c054fb486
pcsx2: compilation issue (miss a L for wstring)
2014-07-30 19:19:42 +02:00
Kingcom
c79fe9a1e7
Fix linux issues
2014-07-30 19:02:39 +02:00
Kingcom
15943eddb1
Fix string handling in breakpoint list
2014-07-30 19:01:50 +02:00
Kingcom
8d1e294b32
Also highlight registers accessed by memory opcodes
2014-07-30 19:01:49 +02:00
Kingcom
c4e89bea32
Add function list
2014-07-30 19:01:49 +02:00
Kingcom
b37f6e9df1
Fix display of memory breakpoint enable status and add context menu to breakpoint list
2014-07-30 19:01:49 +02:00
Kingcom
30a5e31b66
Show the cycles passed in the debugger
2014-07-30 19:01:48 +02:00
Gregory Hainaut
41d2ea4306
i10n: refresh all languages
...
Remove the --previous option of po generation. It broke some translations.
Remove the translation of PCSX2 version, no point to translate C format symbol.
2014-07-30 09:21:49 +02:00
Gregory Hainaut
6485bd89d9
common: drop remaining of HashMap
...
Ryan Houdek removes all use of this code.
Let's remove the left-overs too, beside it will removes the sparsehash depencency
2014-07-29 21:06:31 +02:00
Gregory Hainaut
38f617233d
pcsx2: don't rely on 3rdpary to bring back include dependency
2014-07-29 21:06:30 +02:00
Gregory Hainaut
9e774eb41c
pcsx2: use int instead of uint on file reader
...
Fix a crash when offset was negative. Offet becomes bigger than my input file.
2014-07-29 20:52:18 +02:00
Kingcom
6f101c0a0c
Add small lines between four byte groups in the memory view and fix status bar text not being displayed
2014-07-29 20:50:58 +02:00
Gregory Hainaut
1d5b250b58
pcsx2/cdvd: kill a small memory leak
2014-07-29 20:49:46 +02:00
Gregory Hainaut
e7d0a0345e
pcsx2/: remove ^M eol on 3 files
2014-07-29 20:49:46 +02:00
Gregory Hainaut
50868f14f6
pcsx2: don't access member data directly
2014-07-29 20:45:46 +02:00
Gregory Hainaut
79701aa613
gui:debugger: clean string management
...
Let's use the FastFormatUnicode infrastructure
2014-07-29 20:45:46 +02:00
Gregory Hainaut
ac41ba1f73
wx3.0: rename some deprecated API call
...
Avoid various gcc warning
Note: Compatible with recent wx2.8 version
2014-07-29 20:45:45 +02:00
Gregory Hainaut
76237955c7
wx3.0: fix various string printing on linux
...
wide-char must use %ls format on linux. Don't rely on non standard %s/%S
2014-07-29 20:45:44 +02:00
Gregory Hainaut
cfa8e94e95
wx3.0: disable an useless symbol on linux
...
Not used and print an error message for each plugins.
2014-07-29 20:45:44 +02:00
Gregory Hainaut
01de778831
wx3.0: various buggy code (wx assertion)
...
v3: reenable dc.GetSize, I didn't manage to reproduce the assertion failure
2014-07-29 20:45:44 +02:00
Gregory Hainaut
1fda2a611c
wx3.0: various interface update
...
v3: partially revert previous version
* Keep old behavior for translation on wx2.8
* Revert wxDataObjectSimple parameter change
+ feature is MSW only
+ devs are welcome to improve it
* restore standard path, only update the reference type
2014-07-29 20:45:44 +02:00
Gregory Hainaut
d5d19acb3f
wx3.0: lots of cast...
...
Various string as still wrong but at least it can be compiled now.
I think the remaining issue are w_char with %s format (at least on linux)
2014-07-29 20:45:44 +02:00
Gregory Hainaut
91afc2079c
wx3.0: force wide char as expected
...
Note: on linux it would be better to force everythings to use UTF8
2014-07-29 20:45:43 +02:00
refraction
fb5b7a34e3
VIF: Modification to illegal IRQ's on NOP's Fixes #162 . Some games like Looney Tunes Back In Action use the lower 16 bits for special codes, so we only check the command info area (not the command itself of course, that would be silly).
2014-07-24 18:22:00 +01:00
Kingcom
b23062c54a
Check for alignment when accessing memory with the debugger
2014-07-19 01:05:41 +02:00
Pseudonym
455a20d852
Removed unnecessary #include after pull request #154 .
2014-07-18 21:54:46 +01:00
Pseudonym
a3498c506f
Merge pull request #154 from from Kingcom/Debugger
...
Revert part of #140
2014-07-18 21:50:59 +01:00
Kingcom
2505291065
Revert part of #140
2014-07-18 22:17:41 +02:00
Forrest McDonald
81458912f9
pcsx2: remove template and pointer on overload function from wxGuiTools
...
Fixed clang build.
Note from Gregory:
C++ requests that at least 1 parameters is a class, an enumeration, or a
reference to those objects. Probably to avoid to screw basic type operation.
For example: *p += 4;
The realy buggy code was this one because T could be an int!
template T
f(*ptr, T)
To avoid any issue in the future the Team decide to drop all overload that use pointers.
2014-07-18 19:20:53 +02:00
Forrest McDonald
da93a960af
clang fix for narrowing
2014-07-18 19:14:41 +02:00
sudonim1
85bb789ffa
Merge pull request #148 from Sonicadvance1/remove-dictionary
...
Remove most of HashTools.
2014-07-16 18:10:56 +01:00
Ryan Houdek
ba7b0612dc
Use the iterator to get the value from maps to avoid two look ups.
2014-07-16 12:00:50 -05:00
Kingcom
3db06d7426
Highlight arguments from disassembler selection
2014-07-16 16:20:03 +02:00
ramapcsx2
d6b042f9fe
Merge branch 'master' of https://github.com/PCSX2/pcsx2
2014-07-16 12:32:51 +02:00
Ryan Houdek
391cf379ae
Remove usages of HashTools::Dictionary/HashMap
...
Replace these usages with unordered_map since they are just as quick
2014-07-15 22:02:14 -05:00
Ryan Houdek
2c6188b73f
Switch the GameDatabase from using a pxDictionary to a std::unordered_map.
...
Both implementations are about the same, which is hard to measure since we are limited in speed due to the hashing function.
Both implementations averaged ~220ms to load the full game database on my workstation.
2014-07-15 20:55:52 -05:00
sudonim1
80b22ca2be
Merge pull request #140 from Kingcom/Debugger
...
Various debugger fixes and enhancements
2014-07-15 23:59:07 +01:00
Kingcom
53159a81cf
-Add lq/sq preview
...
-fix potential memory access exceptions
-prevent the disassembly from changing positions when a breakpoint is toggled
-only use the status bar text from the current cpu
2014-07-16 00:51:53 +02:00
sudonim1
c21dd828d5
Merge pull request #137 from Sonicadvance1/vtlb-64bit
...
Fix vtlb compiling for x86_64.
2014-07-15 23:13:08 +01:00
Ryan Houdek
97bed8e710
Fix vtlb compiling for x86_64.
...
This has no functional change on x86_32, it's mostly just changing a few pointer to u32 conversions to uptr and sptr.
I can not yet confirm if this runs on x86_64, but compiling is enough of an issue currently.
2014-07-15 16:42:59 -05:00
sudonim1
aaf70d652b
Merge pull request #138 from Sonicadvance1/yuv2rgb-64bit
...
Let non-x86_32 use the reference yuv2rgb conversion function.
2014-07-15 22:34:38 +01:00
sudonim1
91f23938b5
Merge pull request #136 from Sonicadvance1/gui-pointers
...
Fix two conversions of pointers to integer in the GUI.
2014-07-15 22:20:37 +01:00
Ryan Houdek
0af0db6593
Fix two conversions of pointers to integer in the GUI.
...
Use uptr instead of 32bit integers fixes the issue of compiling.
2014-07-15 16:18:24 -05:00
Ryan Houdek
a143a8b1f6
Let non-x86_32 use the reference yuv2rgb conversion function.
...
The yuv2rgb_sse2 implementation is x86_32 only, so x86_64 can't take advantage of this optimized code path.
This requires the architecture defines to be working fully, so this can't be merged until it is fixed on the Windows side of things.
2014-07-15 15:31:07 -05:00
Ryan Houdek
a1d6ca2298
Fix microVU converting pointers to u32.
...
Convert them to uptr instead to make it architecture independent.
2014-07-15 15:04:08 -05:00
David Quintana
69f57351b2
Merge pull request #109 from Sonicadvance1/windows_arch_defines
...
Support _ARCH_32/64 defines on Windows
2014-07-15 17:04:21 +02:00
Ryan Houdek
6b1ee680a2
Support _ARCH_32/64 _M_X86[_32/_64] defines on Windows
...
This defines the correct define depending on architecture build target.
Currently Windows doesn't support a x86_64 build target, but once it does the define will be in place.
2014-07-15 09:16:37 -05:00
sudonim1
86a0d3faff
Merge pull request #124 from lioncash/array-bounds
...
sVU_zerorec.cpp: Correctly guard against invalid indexes in SuperVUDestroy
2014-07-15 11:27:53 +01:00
ramapcsx2
3daff15f34
Merge branch 'master' of https://github.com/PCSX2/pcsx2
2014-07-15 11:56:55 +02:00
Lioncash
a1080f4853
sVU_zerorec.cpp: Correctly guard against invalid VU indexes
...
recVUHeaders and recVUBlocks are both arrays of size 2. Prior to this, it would allow an index of 2, which is out of range.
2014-07-14 22:44:31 -04:00
Lioncash
673bac12a6
COP0: Fix indentation for function TLBR
2014-07-14 22:07:02 -04:00
Forrest McDonald
b24d4cce8d
Clang doesn't support some flags that GCC does, so conditionally check the compiler and add them if we are doing a GCC build
2014-07-14 13:54:31 +02:00
ramapcsx2
0121366f65
Merge branch 'master' of https://github.com/PCSX2/pcsx2
2014-07-12 20:23:01 +02:00
Gregory Hainaut
7318814474
pcsx2: remove/disable brace warning
2014-07-12 16:04:07 +02:00
Gregory Hainaut
afc4f3386a
pcsx2: be sure that variables are initialized
2014-07-12 16:03:06 +02:00
Gregory Hainaut
c6c6171841
pcsx2: don't hide base function
...
As far as I understand you can't mix virtual (select at runtime) and
overloading (select at compile time).
2014-07-12 16:01:21 +02:00
ramapcsx2
58b63cb58c
Merge branch 'master' of https://github.com/PCSX2/pcsx2
2014-07-12 14:41:50 +02:00
Gregory Hainaut
4fdfd04d3c
partially revert c5d2343f51
...
Parameter name can help to understand the code so let's keep them.
Clang warning was disabled in previous commit
2014-07-12 13:30:34 +02:00
Gregory Hainaut
c73ce3d02d
pcsx2: don't use 0&& to remove code
...
It works but compiler is not happy because it is still parsing the full line.
2014-07-12 12:59:23 +02:00
Gregory Hainaut
f3d03b025a
pcsx2: reorder init of member in constructor
...
Init must be done in the order of declaration
2014-07-12 12:59:23 +02:00
Gregory Hainaut
a1ac59a48a
pcsx2: add various default case statement
...
Note: add a note on some case note handled properly not sure how to fix them.
Actually there are potentially invalid case.
2014-07-12 12:59:23 +02:00
Gregory Hainaut
f401f817ed
cmake: sdl opt typo + clean warning management
...
Add back a lots of warning in the core!
2014-07-12 12:59:23 +02:00
ramapcsx2
a3d5d9112a
Merge branch 'master' of https://github.com/PCSX2/pcsx2
2014-07-07 09:38:54 +02:00
ramapcsx2
b56d9c9e31
Merge pull request #96 from lioncash/unused-vars
...
Core: Remove some unused variables
2014-07-05 20:58:12 +02:00
ramapcsx2
a48369dc41
Merge branch 'master' of https://github.com/PCSX2/pcsx2
2014-07-05 20:48:52 +02:00
ramapcsx2
6800753f09
bla
2014-07-05 20:48:45 +02:00
ramapcsx2
5907bbea6e
Merge pull request #89 from lioncash/array-bounds
...
Fix a possibility for out of bound accesses in logging within Cache.cpp
2014-07-05 20:34:56 +02:00
Lioncash
6dff0b13a4
Core: Remove some unused variables
2014-07-04 22:11:13 -04:00
Gregory Hainaut
c5d2343f51
pcsx2/common: fix tons of warning spamming on clang
...
* Don't use parameter name to avoid unused parameter
* Set a default for various case
2014-07-05 00:08:48 +02:00
Pseudonym
f4cb9de8d9
mVU: Corrected a typo in the branch in branch delay slot handling which prevented using the simpler code in the case of the delay slot being that of an unconditional branch. Now hopefully the code in question actually works for that case, since I'm not sure this has been tested.
2014-07-04 12:38:14 +01:00
Pseudonym
6f19551a77
Quick fix for undefined behaviour in the R3000A disassembler.
2014-07-04 12:35:00 +01:00
Lioncash
ffa216d958
Fix a possibility for out of bound accesses in logging within Cache.cpp
2014-07-03 00:24:16 -04:00
refraction
0ddb77c048
VIF: Ignore interrupts caused by obviously bogus NOP and NULL codes. Fixes Onimusha Blade Warriors.
2014-06-30 18:56:10 +01:00
Gregory Hainaut
f998b72e99
sigh I do the mistake every time
2014-06-20 18:55:25 +02:00
Gregory Hainaut
fe30f2e48e
pcsx2: tlb fix
...
* pc is incremented before execution of the instruction => must be
decremented before exception
* PS2 support 48 tlb => mask need 6 bits
2014-06-20 13:52:05 +02:00
Gregory Hainaut
a00b8ecc55
pcsx2: tlb: goemon implement a preload hack tlb
...
Tlb mapping is stored @0x3d5580 (GoemonTlb[150])
The function that will populate the tlb is around pc = 0x356250, ra = 0x33ad48
The idea is to add a callback on 0x33ad48 block that will populate the tlb based on
ee mem content.
Note: The hack is based on previous Virtual PS2 => Physical PS2 LUT
2014-06-20 13:52:05 +02:00
Gregory Hainaut
9452444a9f
pcsx2: tlb: add a new lut (Virtual PS2 to Physical PS2)
...
note: automatic gamefixes are done after done after the init that why code was splitted.
note2: The LUT is 4MB and only used for only 1 game. So I only allocate it when the gamefix is
enabled
2014-06-20 13:51:33 +02:00
Gregory Hainaut
2e8f56fc86
pcsx2: tlb: add a new gamefix hack for goemon
2014-06-20 13:17:59 +02:00
refraction
81dd3b46c5
Modified behavior of the Delay VIF1 Stall hack to work with Spy Hunter. This is another one of those games which relies on a FIFO which we won't implement because it will just slow things down.
2014-06-06 22:29:33 +01:00
refraction
fd8161c523
Removed a hack which broke Midnight Club in r3285 to fix Batman Begins. Doesn't seem to be needed anymore.
2014-05-29 00:11:04 +01:00
Gregory Hainaut
8775e51ebd
Merge pull request #28 from Kingcom/Breakpoints
...
If a memcheck or breakpoint is triggered in a delay slot, stop on branch
2014-05-24 10:59:04 +02:00
Gregory Hainaut
0bf7a35a53
pcsx2: improve the GS read fifo API
...
1/ initReadFifo will be first called on the GS thread
(openGL can only be done on the GS thread)
2/ readFifo will be called on the EE thread. It is not safe too access eeMem from GS
because of memory is virtual
Fix "recent" regression (crash) on Kingdom heart and others game too.
v2: add a len check on GSState::InitReadFIFO
2014-05-06 20:28:18 +02:00
Gregory Hainaut
3a46634f4a
gcc: fix a couple of gcc warning (sign compare)
...
My gosh, they're like rabbit :p
2014-05-06 09:25:00 +02:00
Kingcom
67f7eaabc7
If a memcheck or breakpoint is triggered in a delay slot, stop on the branch
2014-05-05 23:50:37 +02:00
Avi Halachmi (:avih)
d28669761f
gzip-iso: Speedup some cases by using more memory.
...
Significant speedup on some cases by using roughly another index size
in ram. The ram usage is now up to roughly cache size plus 2x index size.
This patch adds another index-like direct access point for each span we've
visited. This replaces the single z-state which was used for
sequential extraction, and does the same, but now it can continue
sequentially on most previously visited spans instead of only from
the last read.
2014-05-05 15:07:48 +03:00
Avi Halachmi (:avih)
8684596d66
gzip-iso: bugfix in zstate setup, cosmetic refactoring
2014-05-05 14:58:44 +03:00
Gregory Hainaut
460ee7f5de
Merge branch 'Mirrors' of git://github.com/Kingcom/pcsx2
2014-05-05 09:39:35 +02:00
Gregory Hainaut
22b65489e2
gcc warning: constify const string
2014-05-03 10:18:27 +02:00
Gregory Hainaut
4d78b6be31
pcsx2/plugin: sign compare mismatch extra
2014-05-03 10:18:27 +02:00
Gregory Hainaut
4d6d5c870c
pcsx2: remove useless volatile
...
Volatile is only useful as argument not the returned value
2014-05-03 10:18:26 +02:00
Gregory Hainaut
dd8666036c
pcsx2: sign compare mismatch 3/3
2014-05-03 10:18:26 +02:00
Gregory Hainaut
27a4bc5a39
pcsx2: sign compare mismatch 2/3
2014-05-03 10:18:26 +02:00
Gregory Hainaut
88f4d1e3a7
pcsx2: sign compare mismatch 1/3
2014-05-03 10:18:26 +02:00
Gregory Hainaut
c6d8b52d26
pcsx2: try to ensure better sync with FIFO read call
...
First wait will ensure correctness of GS register.
2nd wait will ensure that the GS fifo read call is finished
(If I understand MTGS correctly)
2014-05-01 16:43:12 +02:00
Avi Halachmi
14efa6fbda
gzip-iso: update VS2010/2012 projects (2012 untested)
2014-04-30 13:21:08 +03:00
Avi Halachmi (:avih)
e859d3f3d1
gzip-iso: change zlib_indexed.c to .h
2014-04-29 23:33:28 +03:00
Avi Halachmi (:avih)
0f26be85b5
gzip-iso: fix compiler warning/error
2014-04-29 23:23:07 +03:00
Avi Halachmi (:avih)
49505ab93f
gzip-iso: optimal small chunks sequential access
2014-04-29 11:26:35 +03:00
Avi Halachmi (:avih)
86a6fcddc0
gzip-iso: Better cache, more cpu for quicker extract
2014-04-29 02:41:30 +03:00
Gregory Hainaut
c92de149a2
pcsx2: quick linux fix of recent addition
2014-04-27 22:45:28 +02:00
Avi Halachmi (:avih)
36fe83afcc
Gzip ISO: add cache (50 chunks of 4M)
2014-04-27 22:51:58 +03:00
Avi Halachmi (:avih)
5771e6eae8
Indexed gzipped ISO support (slow - no caching)
2014-04-27 19:58:20 +03:00
Avi Halachmi (:avih)
7d491cb230
Adding zlib example files
2014-04-27 01:33:37 +03:00
Gregory Hainaut
c37d9c10f7
cmake: git compilation issue + useless warning message
...
* avoid compilation failure when git -C isn't supported
* don't print missing dependency when EXTRA_PLUGINS isn't activated
* sed /endif(.*)/endif/ because I don't like it
2014-04-17 20:26:16 +02:00
Kingcom
42651c1500
Check mirrors in breakpoints and memchecks
2014-04-13 18:37:42 +02:00
Gregory Hainaut
17eb468f38
win build fix: set utf8-bom
2014-04-13 10:05:26 +02:00
Gregory Hainaut
75c64e12aa
license: add missing header
...
Still miss lots of copyright header but we are better
2014-04-12 19:42:41 +02:00
Gregory Hainaut
37b1d3ae42
codeblock: remove build file => linux is cmake only
...
They are completely out-dated. And nobody have time to update them.
2014-04-11 09:18:31 +02:00
Gregory Hainaut
f984339404
pcsx2: reduce gamefix panel size
...
Move 2 sentences into the tooltip. Reduce both box and the useless empty space.
Unfortunately, translation would need to updated too.
Thanks Avih for the idea
2014-04-11 09:18:30 +02:00
Gregory Hainaut
86895cbf45
pcsx2 license: add missing nice header on various files
...
Remains 3 files that I don't know the source
pcsx2/windows/DwmSetup.cpp: *No copyright* UNKNOWN
pcsx2/windows/SamplProf.cpp: *No copyright* UNKNOWN
pcsx2/windows/VCprojects/IopSif.cpp: *No copyright* UNKNOWN
Remains 1 files in common that I don't know the source
common/include/comptr.h: *No copyright* UNKNOWN
Remains too much files in plugins that I don't know the source :(
2014-04-11 09:18:30 +02:00
gigaherz
4362cc0e9a
Fixed a few references to Googlecode, and a few mentions of the "svn" word in comments.
...
Other instances of "svn" in filenames and such remain, but they are not high priority and I didn't want to mess with updating all the project systems.
Closes #19 .
2014-04-05 18:38:41 +02:00
Roel Aaij
ec0f9e49c3
Fix segfault in non-dev build by adding extra check for NULL.
2014-03-30 16:59:28 +02:00
Gregory Hainaut
390245806a
cmake: sed /PROJECT_SOURCE_DIR/CMAKE_SOURCE_DIR/
...
The former depends on the project command. Whereas the latter is the true absolute path
of the project
2014-03-30 16:36:02 +02:00
Gregory Hainaut
30ba964f9d
fix visual studio compilation
2014-03-25 18:35:02 +01:00
Gregory Hainaut
0980591fa2
pcsx2 debugger: be more friendly with linux
...
* Fix a couple of gcc warning and replace deprecated function
* Fix the redraw of the memory zone
* Avoid a crash if we breakpoint before running
* Use %s on linux because %S isn't supported
* Properly check .result in recMemCheck. Add some code to print hit
breakpoint.
* breakpoint window isn't properly resized so used a static size as a
temporary workaround
2014-03-25 17:31:52 +01:00
Gregory Hainaut
f78c39cc98
pcsx2: call GSReadFIFO from GS thread (was EE)
2014-03-25 16:36:29 +01:00
Kingcom
e31afb5885
Fix VS2010 build
2014-03-25 16:15:21 +01:00
David Quintana
2fbac107ca
Merge pull request #5 from Kingcom/master
...
More debugger enhancements and fixes
2014-03-25 14:42:59 +01:00
gigaherz
f7c1b6e060
Git-based versioning.
2014-03-25 13:31:36 +01:00
Kingcom
c25020765c
Display memory view page when setting its position
2014-03-23 13:30:11 +01:00
Kingcom
10c3928eef
Focus disassembly when a breakpoint triggered
2014-03-23 13:30:11 +01:00
Kingcom
100fe404a5
Load symbols from file
2014-03-23 13:30:10 +01:00
Kingcom
0ade0a44b5
Detect and skip padding nops at the end of functions
2014-03-23 13:30:10 +01:00
Kingcom
7a20d94536
Fix breakpoint window on Linux
2014-03-23 13:30:10 +01:00
Kingcom
4e2e178417
Add list to show, edit and delete breakpoints
2014-03-23 13:30:10 +01:00
Kingcom
aad9ea0e05
Memory breakpoints
2014-03-23 13:27:50 +01:00
Kingcom
074da1fedf
Use CPU cycles to determine if we should skip a breakpoint after resuming
2014-03-23 13:27:50 +01:00
Kingcom
c8a760832b
Change register value
2014-03-23 13:27:50 +01:00
Kingcom
b69dcb51a0
Always enable debugger in devbuilds, but keep function scanning restricted to the enable state
2014-03-23 13:27:50 +01:00
Kingcom
e55229db40
A hackish attempt at step into
2014-03-23 13:27:49 +01:00
Kingcom
d8abd04a8e
Only capture F10, not all system keys
2014-03-23 13:27:49 +01:00
Kingcom
5935572458
Better valid ranges
2014-03-23 13:27:49 +01:00
Kingcom
807521f91b
Add debugger config to ini, and put it to use
2014-03-23 13:27:49 +01:00
Kingcom
8ee14a8039
Address mask for breakpoints, always clear whole instruction cache (until there's a better solution)
2014-03-23 13:27:49 +01:00
Kingcom
8cd45189c3
Step over ERET
2014-03-23 13:27:48 +01:00