Dynrec - ARM 64-bit backend

Developer's Forum, for discussion of bugs, code, and other developmental aspects of DOSBox.

Dynrec - ARM 64-bit backend

Postby M-HT » 2018-6-09 @ 12:33

Hi,

I created a backed in the dynrec for 64-bit ARM (ARMv8, little endian).

Detection in configure is included, but in case it doesn't work, following definitions should be set in config.h
Code: Select all
#define C_DYNREC 1
#define C_TARGETCPU ARMV8LE
#define C_UNALIGNED_MEMORY 1


Patch for revision 4112 is in the attachment.

Changed files:
src/cpu/core_dynrec.cpp
src/cpu/core_dynrec/Makefile.am
configure.ac

New file:
src/cpu/core_dynrec/risc_armv8le.h
Attachments
armv8-r4112.diff
Patch for revision 4112
(53.01 KiB) Downloaded 66 times
M-HT
Newbie
 
Posts: 61
Joined: 2008-9-01 @ 12:55
Location: Bratislava

Re: Dynrec - ARM 64-bit backend

Postby bruenor41 » 2018-6-09 @ 12:51

Tested last day on 6 different devices and 20+ games. No crashes or unusual behaviors. Most important : No performance regression against 32 bit backend! Good work! :)
bruenor41
Newbie
 
Posts: 16
Joined: 2013-4-22 @ 08:58

Re: Dynrec - ARM 64-bit backend

Postby krcroft » 2018-6-09 @ 14:19

This excellent work just future-proofed dosbox on aarch64 when it will eventually displace the 32bit arm archs.
Excellent addition!
krcroft
Newbie
 
Posts: 58
Joined: 2017-4-29 @ 15:07
Location: Tsawwassen

Re: Dynrec - ARM 64-bit backend

Postby Qbix » 2018-6-11 @ 15:39

Thanks a lot!
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10635
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Dynrec - ARM 64-bit backend

Postby Qbix » 2018-6-13 @ 09:24

Added it.
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10635
Joined: 2002-11-27 @ 14:50
Location: Fryslan

Re: Dynrec - ARM 64-bit backend

Postby M-HT » 2018-6-14 @ 19:59

Thanks to more testing by bruenor41 a bug was found. The fix is in the attachment.
Attachments
armv8-r4118.diff
Patch for revision 4118
(663 Bytes) Downloaded 59 times
M-HT
Newbie
 
Posts: 61
Joined: 2008-9-01 @ 12:55
Location: Bratislava

Re: Dynrec - ARM 64-bit backend

Postby Qbix » 2018-6-14 @ 21:07

commited in 4119. Thanks!
Water flows down the stream
How to ask questions the smart way!
User avatar
Qbix
DOSBox Author
 
Posts: 10635
Joined: 2002-11-27 @ 14:50
Location: Fryslan


Return to DOSBox Development

Who is online

Users browsing this forum: No registered users and 1 guest