463 Commits

Author SHA1 Message Date
Andrew Hutchings
cfc65d4931 Fix flash for sudo
When executed under sudo the wrong shell is used by Debian, causing an
error. This patch fixes the script so it specifies which shell to use.

Note that you don't need to run flash.sh under sudo because it sudos
itself.
2021-06-29 13:21:22 +01:00
beeanyew
b0616b5246
Merge pull request #54 from LinuxJedi/add-cpld-detection
Add flash autodetect
2021-06-29 11:13:33 +02:00
Andrew Hutchings
85eee9f53c Add flash autodetect
Added flash.sh and flash_experimental.sh. These will detect the CPLD
version for EPM240(G) and EPM570(G) and execute the correct flash
command.
2021-06-29 09:46:19 +01:00
beeanyew
49a7beaaee
Merge pull request #52 from LinuxJedi/readme-update
Update README to fix some things
2021-06-29 09:09:58 +02:00
Andrew Hutchings
dd5a32583f Update README to fix some things
* Change to Libra Chat
* Change a couple of things that imply Rev B means EPM240 (and therefore
  Rev A means EPM570)
* `chmod +x` no longer needed as the git tree contains the exec bit set
* The output of the nprog commands has changed so updated appropriately
2021-06-29 08:07:46 +01:00
beeanyew
5d8987c1dd
Merge pull request #53 from captain-amygdala/main
Update README.md with new IRC info, some PiSCSI corrections
2021-06-29 08:47:03 +02:00
beeanyew
45689acf07
Merge pull request #51 from LinuxJedi/nprog_check
Add checks to buptest and nprog
2021-06-29 03:49:37 +02:00
Andrew Hutchings
11f6414342 Add checks to buptest and nprog
nprog now checks if emulator is running and gives a much clearer success
/ fail with a log file for the more verbose output.

Also buptest now won't run if emulator is running.
2021-06-28 22:16:58 +01:00
beeanyew
208ba3d79d Get rid of Musashi separate writes
The separate writes functionality of Musashi was severely getting in the way of any kind of caching of bus longwords, and I found that the negatvie performance impact of disabling separate writes could be negated by creatively applying the address translation cache to the FC reads/writes instead.
This commit requires a `make clean` before rebuilding the emulator with `make`.
2021-06-28 15:08:28 +02:00
beeanyew
9b1031c859 Fix Musashi compilation with prefetch emulation disabled 2021-06-27 19:20:22 +02:00
beeanyew
fd56d2cd0e
Merge pull request #50 from paulofduarte/wip-crap
IRQ emulation and a few Keyboard fixes.
2021-06-27 06:00:22 +02:00
Paulo Duarte
441b0709b4
Fixed Caps Lock behaviour 2021-06-27 04:40:59 +01:00
Paulo Duarte
6aef6ea4b6
Fixed lowercase v on char_from_input_event 2021-06-27 04:40:44 +01:00
Paulo Duarte
5b74c77b1a
Keyboard using emulated IRQ 2021-06-27 04:25:11 +01:00
Paulo Duarte
fcd850c495
Amiga emulated IRQ implementation 2021-06-27 04:24:38 +01:00
beeanyew
882bd28428 Unbreak (actually break) IRQs again... 2021-06-26 14:41:48 +02:00
beeanyew
3168b13b6f Remove debug IRQ disable/enable from PiSCSI boot ROM
This somehow broke the interrupt handlers for a bunch of things, including the standard HDD installed version of Monkey Island II.
2021-06-25 05:07:47 +02:00
beeanyew
ea48014e54 Break IRQs again 2021-06-24 09:52:36 +02:00
beeanyew
75c73650a6 Fix Musashi compilation with MMU emulation enabled 2021-06-24 09:34:29 +02:00
beeanyew
0a83e0f5f3 Add System ROM pos setvar to Mac platform 2021-06-24 02:25:33 +02:00
beeanyew
39f4ef5cf8 Actually revert to old IRQ behavior 2021-06-23 10:27:04 +02:00
beeanyew
6695f9335e Revert to new IRQ behavior after some unsuccessful experiments
This brings back all the graphics and music glitches, but it does make fewer games and software lock up on missed IRQs.
2021-06-23 06:43:25 +02:00
beeanyew
77a6ed0756 Actually remove the read/write ranges "properly" 2021-06-23 04:52:44 +02:00
beeanyew
16a902fad2 Add some more Mac68k handling stuff 2021-06-23 04:42:58 +02:00
beeanyew
d485267523 Some more write-through cache RAM map OVL handling 2021-06-22 14:32:45 +02:00
beeanyew
f7034d052a Add OVL handling to write-through cache RAM 2021-06-22 14:00:36 +02:00
beeanyew
ce1c064e71 Add write-through cached RAM for Mac experiments 2021-06-22 13:13:13 +02:00
beeanyew
b550b0d632
Merge pull request #49 from runehol/main
Pass around a m68i_cpu_core pointer instead of accessing it as a global variable
2021-06-21 03:16:16 +02:00
Rune Holm
747b19f7c8 removed most traces of direct access to the m68ki_cpu global variable 2021-06-20 21:42:03 +01:00
Rune Holm
0c763fca70 introducing CPU state parameter 5 - now switched most register state over 2021-06-20 21:42:03 +01:00
Rune Holm
514f1d4e24 introducing CPU state parameter 4 2021-06-20 21:41:55 +01:00
Rune Holm
d06400230f introducing CPU state parameter 3 2021-06-20 21:35:37 +01:00
Rune Holm
6d74804193 introducing CPU state paramter 2 2021-06-20 21:54:08 +02:00
Rune Holm
14636790c6 introducing CPU state parameter 2021-06-20 21:54:05 +02:00
Rune Holm
18cba7ddc6 step 1: add a state parameter to all opcode functions 2021-06-20 21:50:15 +02:00
beeanyew
b7f62f8e5d [HAX] Fix old-new IRQ behavior a bit? 2021-06-20 18:00:31 +02:00
beeanyew
bab7a847c0 Make experimental bitstream optional 2021-06-20 16:59:11 +01:00
beeanyew
9a043dfb87 [HAX] Try some different IRQ behavior
May or may not require a make clean, also may or may not require a custom firmware to work.
2021-06-20 06:13:40 +02:00
beeanyew
0548473f81 Update README.md with new IRC info, some PiSCSI corrections 2021-06-19 16:36:08 +02:00
beeanyew
22b742ee9e Disable mouse/kb hook on Amiga platform shutdown 2021-06-19 01:05:08 +02:00
beeanyew
cdd7b35e35
Merge pull request #48 from runehol/main
Smaller speed improvements
2021-06-19 00:39:10 +02:00
Rune Holm
a2b0521dbd move address translation cache fields from global variables to the m68k struct, as
this way we can pass around one pointer and access them all in the future.
This happens to win 5-10% performance, because now the code generator can generate a single
global variable pointer to get to all of the translation cache/range fields at once.
2021-06-18 22:01:22 +01:00
Rune Holm
b91e0e809d optimise away an unnecessary subtract on the instruction fetch fast path 2021-06-18 22:01:20 +01:00
beeanyew
ae4e0ae9f1 Add some Mac thing to enable/disable ROM overlay 2021-06-18 22:01:20 +01:00
beeanyew
e01f68fd4f Move Amiga register read/write checks to PLATFORM_AMIGA scope 2021-06-18 22:01:19 +01:00
shanshe
a315cdb7b8 Improve 68k cycle state machine
S7 and S0 states are made faster to gain almost a c7m cycle, making Chip
access faster. (sysinfo 4.4 chip speed from 0.97 to 1.13)
2021-06-18 22:01:19 +01:00
beeanyew
4b2af2ee35 Fix config reload?
Apparently I forgot to stage a hunk, also don't attempt to initialize A314 emulation if it has already been initialized.
2021-06-18 22:01:18 +01:00
beeanyew
635711f798 [HAX] Inline ps_read8/16/32 in emulator.c to avoid long jumps on bus transactions 2021-06-18 22:01:17 +01:00
beeanyew
a48402ce6c Fix Musashi compilation with prefetch emulation disabled 2021-06-18 22:01:17 +01:00
Jarno Lehtinen
46074e70cc Suppress CLI-window at startup when using AmiTCP
Redirect AmiTCP:bin/startnet output to NIL: so it doesn't open new persistent CLI-window at startup.
2021-06-18 22:01:17 +01:00