RSDuck
052079afeb
fix Windows
2020-11-09 20:56:31 +01:00
RSDuck
78839f862e
JIT fixes
...
- fix fastmem problems on linux
- small fix memory leak
- SlowWrite functions always take in a 32-bit variable so that the C compiler knows that the values aren't necessary zero extended
- a few other stylistic things
- handle SIGBUS as well (for macos)
2020-11-09 20:43:31 +01:00
RSDuck
ad7791f726
better framelimiter for reference: https://github.com/citra-emu/citra/blob/master/src/core/perf_stats.cpp#L129
2020-11-02 20:13:22 +01:00
Filippo Scognamiglio
fbca47381b
Fix a couple of wrong cpp function pointers. ( #785 )
2020-10-31 17:53:01 +01:00
Filippo Scognamiglio
45ea1fa990
Fix compilation issues on pedantic cpp compilers. ( #783 )
...
* Fix compilation issues on pedantic cpp compilers.
* Avoid using fullblown static function.
2020-10-31 17:40:05 +01:00
RSDuck
9ac60a840a
SPU: work with scalars instead of arrays
2020-10-31 13:48:02 +01:00
Hypnotron
05e274a1f6
Added 8/16-bit IPCFIFOSEND writes
2020-10-29 16:09:25 -04:00
RSDuck
c03d83b7be
remove qt_sdl dependency from frontend util
2020-10-28 19:45:50 +01:00
Arisotura
d2cd3eadbe
fix to timers (ZXDS no longer runs slow as shit)
2020-10-27 05:03:17 +01:00
Arisotura
81964a0f89
make things function atleast somewhat
...
no pciture is being actually sent yet
2020-10-26 21:54:08 +01:00
Arisotura
c0c1c2e1c2
camera: remember PLL config
2020-10-26 21:16:20 +01:00
Arisotura
fc922ffb14
Merge branch 'master' into dsi_camera
...
# Conflicts:
# src/DSi_I2C.cpp
2020-10-26 20:47:30 +01:00
Arisotura
49a96f41da
I2C: silence logging for devices A0/E0 (mysterious alternate cameras)
2020-10-26 20:34:54 +01:00
Arisotura
2f15bcf93b
betterer battery level
2020-10-26 17:55:25 +01:00
Arisotura
af0a9e92c4
make unlaunch'd NANDs work
2020-10-25 18:25:09 +01:00
Arisotura
9fdc1de6fe
add a few missing 32bit I/O accesses (IPC, SPI)
2020-10-25 18:14:40 +01:00
WaluigiWare64
8d70d0926c
Merge branch 'master' into feature/zip-support
2020-10-23 00:39:29 +01:00
WaluigiWare64
a8851a51f1
Switch to libarchive
2020-10-22 23:41:26 +01:00
RSDuck
65be1840f0
change JIT branch optimisations default to 1
...
branch linking is dead
2020-10-15 05:59:45 +02:00
Madhav Kanbur
dc46da0e24
Input : Treat numpad keys as keypresses
...
Typically, modifiers are masked out of keypresses to distinguish
between hotkeys and keypresses. This patch prevents the numpad
modifier from getting masked out in KeyPress() and KeyRelease().
Signed-off-by: Madhav Kanbur <abcdjdj@gmail.com>
2020-10-13 11:02:58 +05:30
kyandora
f8c4bf6db1
save microphone hotkeys ( #781 )
2020-10-07 01:33:11 +02:00
RSDuck
ef4215e172
flush to file after importing SRAM
2020-10-06 00:49:16 +02:00
Valeri
0d845c9e69
Random minor fixes ( #757 )
...
* Fix incorrect/questionable assert() usage
Originally reported by https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2159000700 ,
but also includes a bunch of other fixes.
* Fix some `printf` warnings
Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2160310550
* Remove useless check
It is never passed thanks to `if (num_in < 1) {...; return}` before
Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2154840804
* Add missing header guard, rename other to avoid conflicts
Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2163210746
* Make DSi_SDDevice destructor virtual
Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2158670642
* Use thread-safe localtime_r, assign `time` result directly
Rule https://lgtm.com/projects/g/Arisotura/melonDS/?mode=tree&ruleFocus=2154840805
* Fix MinGW build
It needs _POSIX_THREAD_SAFE_FUNCTIONS to export `localtime_r`
2020-10-01 13:44:09 +02:00
RSDuck
9d5791f8e5
use fixed sized integers from stdint.h
2020-10-01 13:32:06 +02:00
RSDuck
6977302403
make OpenGL renderer a build option
...
mostly meant for the Switch port
2020-10-01 00:01:05 +02:00
Arisotura
a88df19708
avoid out-of-bounds read in GPU2D. fixes #763
2020-09-18 00:29:08 +02:00
RSDuck
edf4c66724
fix build on Switch
2020-09-11 19:29:06 +02:00
RSDuck
f2fa52f26c
add functionality to import savefiles
2020-09-11 03:08:06 +02:00
Arisotura
8d42b1c7d7
messin' around
2020-09-08 20:19:37 +02:00
PoroCYon
00e2ec3faf
fix 8-bit ConsoleID address decoding typo ( #749 )
2020-09-07 04:09:03 +02:00
WaluigiWare64
ea640398f9
Add support for fullscreen hotkey ( #748 )
2020-09-06 22:59:35 +02:00
RSDuck
9772201345
remove some UB
...
- savestates used to read a four bytes from a single byte value
- a few unassigned variables
- some other things
- also make the ROR macro an inline function
2020-09-04 20:37:14 +02:00
Arisotura
94d12c68b3
heh
2020-09-04 13:41:51 +02:00
Arisotura
3739e4dd67
muhhahahahahh
2020-09-04 10:36:50 +02:00
Arisotura
5431c469c3
actually add DLDI. bahahahhh
2020-09-03 20:28:07 +02:00
Arisotura
81eda0f19c
bahahahhh
2020-09-03 19:05:13 +02:00
Arisotura
0ee5bb7a3b
Merge pull request #734 from v1993/master
...
Fix "Improved polygon splitting" option in GUI
2020-09-03 13:12:38 +02:00
Arisotura
1f634ed157
Merge branch 'master' of https://github.com/Arisotura/melonDS
2020-09-03 11:52:41 +02:00
Arisotura
aa94cbaeb0
DSi: add support for 8-bit VRAM writes when enabled in SCFG_EXT. fixes #733
2020-09-03 11:51:50 +02:00
qeeg
9bfaf8682d
Fix a typo
2020-08-31 16:37:42 -05:00
v1993
aed7a32243
Fix "Improved polygon splitting" option in GUI
2020-08-31 18:56:20 +03:00
RSDuck
b12e1a1b6e
JIT fastmem: fix out of bounds read
...
seems to fix #727
2020-08-25 18:13:17 +02:00
Arisotura
4be68aafe0
make SD support actually be a thing
2020-08-25 00:34:57 +02:00
Arisotura
e5dd692d32
AES: fix bug where CCM-encrypt MAC could be obliterated, by attempting to write it while the output FIFO was full
2020-08-25 00:17:22 +02:00
Arisotura
b36b3feb7f
support .dsi extension for dragdrop/cmdline launching
2020-08-24 21:25:10 +02:00
Arisotura
31e83b2bf3
fix config file lookup. fixes #717
2020-08-24 21:14:46 +02:00
RSDuck
30fc6bbc09
JIT: fix QDSUB/QSUB for interpreter run
2020-08-24 21:07:20 +02:00
Arisotura
f4427a89d0
disable savestate menu items in DSi mode
2020-08-24 20:13:58 +02:00
Arisotura
3685edeef2
make GL display also not default
2020-08-24 20:03:24 +02:00
Arisotura
39af95e869
make the AR engine use the correct bus funcs based on DS/DSi mode
2020-08-24 19:55:20 +02:00
Arisotura
13521211d2
make software renderer the default
2020-08-24 19:32:44 +02:00
Arisotura
e7025abcdc
* fix build error
...
* make betterer polygon splitting an option
* add GL_LEQUAL depth test for 'equal' mode, might help
2020-08-24 19:32:07 +02:00
Arisotura
abccc44eec
make MAC randomization optional
2020-08-24 19:19:41 +02:00
Arisotura
c29e630314
oops.
...
fixes #725
2020-08-24 12:00:13 +02:00
Arisotura
b5f9278b3a
GL: hopefully finally fix the checkerboard issue
2020-08-20 03:01:05 +02:00
Arisotura
0688a15e47
blarg
2020-08-20 01:37:33 +02:00
Arisotura
959e7f568d
GL: be more careful with framebuffer mappings. might fix issues.
2020-08-20 01:19:09 +02:00
Arisotura
660792d64b
wifi:
...
* don't receive packets if the RX buffer is zero-sized
* avoid potential out-of-bound writes
2020-08-19 19:16:09 +02:00
Arisotura
c9447935ff
NWifi: correctly determine ROM/chip/etc IDs based on hardware version (as specified in firmware).
...
fixes #700
2020-08-19 17:53:31 +02:00
Arisotura
e1add6f3d7
3D: add a bunch of missing variables to savestates. oops.
...
fixes #716
2020-08-19 16:25:40 +02:00
Arisotura
00f33343e4
3D/GL: experimental attempt at reducing warping on quads, pentagons, etc...
2020-08-19 14:53:42 +02:00
Arisotura
de19ce6250
3D/GL: make polygon generation code cleaner, add quicker codepath for triangles (also laying ground for some evil experiment)
...
also fix stupid bug with line polygons
2020-08-19 13:02:54 +02:00
Arisotura
a32d997e1c
SPU: don't process channels with len<4
2020-08-19 04:18:17 +02:00
Arisotura
6f4e7c60b2
GPU2D: allow writes to DISPCNT, master brightness, capture, dispFIFO regardless of POWCNT.
...
fixes #665
2020-08-19 00:46:16 +02:00
Arisotura
ba373ca72a
DSi: make ARM9-clock-selector actually work
2020-08-17 19:15:45 +02:00
Arisotura
e27d55505f
blarg
2020-08-15 01:11:18 +02:00
Arisotura
f8d1d08e9c
(finally) build the goddamn cheat interface
2020-08-15 00:14:05 +02:00
RSDuck
4299ef5f06
use unordered map for JIT RestoreCandidates
...
also fix WifiRead32?
2020-08-14 23:38:47 +02:00
Arisotura
4cefff2528
add AR code file parser and shit
2020-08-13 00:20:34 +02:00
Arisotura
28b8f614ee
heh
2020-08-11 18:03:44 +02:00
Arisotura
0bd53a34ef
lay base for the actual dialog
...
also make EmuSettingsDialog properly modal
2020-08-11 17:38:29 +02:00
Arisotura
f23e782966
hey look. Arisotura the lazy derp finally made a dialog.
2020-08-11 15:58:41 +02:00
RSDuck
36bdb591be
fix JIT for code in VRAM
...
apparantely Pokemon B/W needs this
fixes #708
2020-08-09 13:29:04 +02:00
WaluigiWare64
240175f274
Update CMakeLists.txt
2020-08-06 14:39:42 +01:00
WaluigiWare64
6d71f9c832
Merge branch 'master' into feature/zip-support
2020-08-05 15:06:15 +01:00
U-RAYYAN-PC\Rayyan
7e5eafe345
Statically link libzip
2020-08-05 14:50:18 +01:00
RSDuck
e4b1526b47
reset JIT fastmem on JIT block cache reset as well
2020-07-31 23:05:11 +02:00
RSDuck
2a3147db46
reset fastmem on DSi soft reset
2020-07-31 22:39:27 +02:00
Arisotura
c5ecef7410
fix similar bug with emu settings dialog
...
also make the reset-warning dialog a bit betterer
2020-07-31 20:51:16 +02:00
Arisotura
d21cd20290
fix some pause bugs
2020-07-31 20:45:30 +02:00
RSDuck
a89741c628
fix unterminated string + remove some JIT logging
2020-07-29 01:31:57 +02:00
RSDuck
f56aa60eb6
check IRQ first then Idle loop
...
apparently I put it this way for a reason
2020-07-28 00:44:58 +02:00
RSDuck
ea734084ca
check DSi interrupts for halted processor wakeup
2020-07-27 23:18:33 +02:00
RSDuck
5903b11bda
subtract cycles after checking IRQ and Halt
...
also switch back to adding to ARM::Cycles instead of subtracting from them
2020-07-27 23:14:39 +02:00
Arisotura
dff14ca80a
Merge pull request #682 from nadiaholmquist/slirp-merge
...
Merge slirp branch into master
2020-07-27 16:01:55 +02:00
RSDuck
17ce4d2a73
x64 JIT: remove unecessary MOV
2020-07-27 13:49:13 +02:00
Nadia Holmquist Pedersen
6a682a8ef0
Link iconv instead of ${Iconv_LIBRARIES} because idk Windows
2020-07-26 22:26:50 +02:00
Nadia Holmquist Pedersen
a1f939e0cb
use FindIconv and link it on all platforms when not built in
2020-07-26 22:16:53 +02:00
Nadia Holmquist Pedersen
173e3b037c
Link iconv for Windows static builds
2020-07-26 22:08:57 +02:00
Nadia Holmquist Pedersen
b4ad35948d
Merge remote-tracking branch 'upstream/slirp' into slirp-merge
2020-07-26 21:41:09 +02:00
RSDuck
0e7df468c7
x64 JIT: generate patch trunk for RSCRATCH4
...
I thought I already fixed this?
2020-07-25 22:21:26 +02:00
RSDuck
887ad27ed8
implement carry setting ALU op with imm
2020-07-25 22:08:43 +02:00
RSDuck
af31d25086
fix #672
2020-07-25 21:16:23 +02:00
RSDuck
8a96dfce18
fix build with JIT disabled
...
fixes #675 and #674
2020-07-25 20:59:53 +02:00
WaluigiWare64
c351e777b4
part 2 of fix Linux invalid encoding
2020-07-24 18:25:07 +01:00
WaluigiWare64
a5d9f69127
Fix Linux "invalid encoding" filename
2020-07-24 18:19:02 +01:00
RSDuck
116d831cfd
Fix 16-bit DSi ARM9 read
2020-07-23 20:06:44 +00:00
RSDuck
f5130f82eb
Arisotura isn't the only derp
2020-07-23 19:56:09 +00:00
Arisotura
ac8f44125b
I'm a derp
2020-07-23 21:27:45 +02:00
RSDuck
e85d2e2cf3
Use the correct slow path for block read/write
2020-07-23 19:12:25 +00:00
RSDuck
961b4252e2
Make it buildable on aarch64
2020-07-23 19:07:33 +00:00
RSDuck
e63bd7e38c
for some reason tabs and spaces were mixed
2020-07-23 17:43:25 +02:00
Arisotura
2f9a6b7c03
SPU: delay channel start until whenever it can actually start. fixes maxmod interpolated mode.
2020-07-23 12:59:19 +02:00
WaluigiWare64
7937406af6
Change binary stream to u8 and cast to char*
2020-07-22 16:39:24 +01:00
WaluigiWare64
7fb67570e9
fix
2020-07-22 16:17:32 +01:00
WaluigiWare64
c8e934ce97
Fix indentation + delete contents
2020-07-22 16:01:18 +01:00
U-RAYYAN-PC\Rayyan
96e0e37156
Link it up to onOpenFile()
2020-07-22 15:15:56 +01:00
U-RAYYAN-PC\Rayyan
0009a3ffd1
Add the extractROM function
2020-07-22 15:13:14 +01:00
U-RAYYAN-PC\Rayyan
523ff9ff1c
Add libzip dependency in the workflow files and to CMakeLists.txt
2020-07-22 14:22:23 +01:00
RSDuck
3827fa562f
another try
2020-07-09 00:11:47 +02:00
RSDuck
1519b3d5fa
attempt at fixing aarch64 linux yet again
2020-07-08 23:57:43 +02:00
RSDuck
8f5d8d1e12
fix for fastmem when pc is used as immediate
...
and (hopefully) make SIGSEGV handler work for aarch64 linux
2020-07-08 23:47:24 +02:00
RSDuck
3786660099
misc JIT changes
2020-07-08 23:08:25 +02:00
RSDuck
778623a8b7
make linux work and fix a few bugs
2020-07-04 18:58:00 +02:00
RSDuck
c5381d2911
reconcile DSi and JIT, fastmem for x64 and Windows
2020-06-30 23:50:41 +02:00
Arisotura
d9e1bf737c
blarg
2020-06-21 18:34:53 +02:00
Arisotura
c32da212f1
make it possible to static-link libslirp
2020-06-21 15:44:56 +02:00
Arisotura
ff69df2a15
add AES-CCM encrypt
...
makes the eShop work
2020-06-21 12:20:02 +02:00
Arisotura
e43a216ab5
take care of some minor details
2020-06-21 11:02:42 +02:00
Arisotura
7132e11bd4
make it work without a hack
2020-06-21 10:29:08 +02:00
Arisotura
b31e049b30
wifi fixes and shit. getting there, somewhat.
2020-06-21 01:43:32 +02:00
Arisotura
91ff63a194
fix slirp crash when exiting without having inited slirp
...
also fix misc bugs
2020-06-16 14:09:54 +02:00
RSDuck
ea6d03581b
make literal optimisation work again
...
enable single register block load/store optimisations for x64 aswell
2020-06-16 12:11:20 +02:00
RSDuck
e335a8ca76
first steps in bringing over the JIT refactor/fastmem
2020-06-16 12:11:19 +02:00
RSDuck
fea9f95bba
fix inlined IO register access
2020-06-16 12:06:43 +02:00
RSDuck
e7d076403d
Merge branch 'generic_jit' of https://github.com/Arisotura/melonDS into generic_jit
2020-06-16 12:06:42 +02:00
RSDuck
c17f7b100e
allow allocating caller saved regs on windows
2020-06-16 12:01:10 +02:00
RSDuck
efb796640b
use instr hash as key for restore candidates
...
makes Golden Sun burn a little slower through the JIT memory
2020-06-16 12:01:10 +02:00
RSDuck
80b88dbd05
allow allocating caller saved registers
...
currently system-v only
2020-06-16 12:01:09 +02:00
RSDuck
052ff73672
rewrite JIT memory emulation
2020-06-16 12:01:08 +02:00
RSDuck
b902cd1b8e
fix regression from last commit
...
also a small mistake with msr
2020-06-16 11:59:10 +02:00
RSDuck
5a3607bc68
don't use param registers for ReadBanked/WriteBanked
...
should fix linux build
2020-06-16 11:59:09 +02:00
RSDuck
6d217e1010
fix build with JIT disabled and set default JIT maxblock size to 32
2020-06-16 11:59:09 +02:00
RSDuck
dc86bac83d
hopefully fix stack handling for linux
2020-06-16 11:59:08 +02:00
RSDuck
c2dd6a186d
implement msr and mrs for the x64 JIT
2020-06-16 11:59:07 +02:00
RSDuck
1c98cefcee
compile UMULLs and some fixes
2020-06-16 11:59:06 +02:00
RSDuck
1c07932b40
implement block linking + some refactoring
...
currently only supported for x64
2020-06-16 11:59:06 +02:00
RSDuck
1ad90cb334
include more information in DataRegion
2020-06-16 11:58:46 +02:00
RSDuck
3ab9e4a4c9
arm64 fix itcm invalidation and ldm^/stm^
2020-06-16 11:57:58 +02:00
RSDuck
3098c6a9a0
preparations for block linking
2020-06-16 11:57:57 +02:00
RSDuck
5ab56cef5f
this mistake was phenomally stupid
2020-06-16 11:57:57 +02:00
RSDuck
225f90cced
the time of good commit names is long gone
2020-06-16 11:57:56 +02:00
RSDuck
c8b7a34383
git played a prank on me haha very funny
2020-06-16 11:57:55 +02:00
RSDuck
262dc7ad00
this it should work
2020-06-16 11:57:55 +02:00
RSDuck
d2acceb367
fixup for aarch64 JIT
2020-06-16 11:57:54 +02:00
RSDuck
2725429727
fix LDM usermode for aarch64 as well
2020-06-16 11:57:53 +02:00
RSDuck
3173e6e25d
re add error for unsupported JIT platforms
2020-06-16 11:57:52 +02:00
RSDuck
0d83e98e04
apply fixes for aarch64 linux by @nadiaholmquist
2020-06-16 11:57:52 +02:00
RSDuck
99b34efe2d
move ARM64 JIT backend here
2020-06-16 11:57:51 +02:00
RSDuck
baed0ac0d5
remove debug leftovers
2020-06-16 11:57:50 +02:00