• Login
  • Register
  • Dolphin Forums
  • Home
  • FAQ
  • Download
  • Wiki
  • Code


Dolphin, the GameCube and Wii emulator - Forums › Dolphin Emulator Discussion and Support › Development Discussion v
« Previous 1 ... 15 16 17 18 19 ... 115 Next »

Will SETEND speed up dolphin on ARM (Android)?
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Will SETEND speed up dolphin on ARM (Android)?
07-01-2018, 05:59 PM
#1
bog_dan_ro
Unregistered
 
Hi,

 I was wondering if using the ARM SETEND BE/LE instructions (check this page) to load/store 16,32 & 64 bit values from memory will speed up the emulation on arm CPU? I think using SETEND BE/LE will save a few CPU ticks because the swapping is not needed anymore (unless SETEND BE/LE takes more than swapping).
Reply
07-03-2018, 06:06 PM
#2
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,827
Threads: 10
Joined: May 2012
This actually sounds like a nice instruction, but it is only available in the 32bit mode. And we can't switch between 32bit and 64bit within the same application. So we either loose fastmem + half of our registers, or this instruction.
Find
Reply
07-03-2018, 08:36 PM
#3
bog_dan_ro
Unregistered
 
(07-03-2018, 06:06 PM)degasus Wrote: This actually sounds like a nice instruction, but it is only available in the 32bit mode. And we can't switch between 32bit and 64bit within the same application. So we either loose fastmem + half of our registers, or this instruction.

Ah, you're right PSTATE has no endian bit. I don't know why they didn't support it in 64bit mode as long as the CPU supports it in 32 bit mode...
Reply
07-03-2018, 09:42 PM
#4
bog_dan_ro
Unregistered
 
It seems there is a way to set the endians also on AArch64 but it seems is not mandatory so, some AArch64 CPU might not implement it....
Reply
07-03-2018, 09:46 PM
#5
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,827
Threads: 10
Joined: May 2012
Yeah, you can still pick LE or BE, but only in real mode. Se we would have to ask the operation system to switch the ABI. Right now, linux doesn't support this but on application init.
Find
Reply
« Next Oldest | Next Newest »


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:


Users browsing this thread: 1 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode