• 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 ... 117 Next »

IPC with game running inside dolphin
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
IPC with game running inside dolphin
11-08-2018, 05:06 PM
#1
Henrik Offline
Junior Member
**
Posts: 5
Threads: 2
Joined: May 2018
Hi, I'm working on a project which requires a PowerPC program running inside dolphin to communicate with a normal x86 application. Communicating over the Gamecube broadband adapter is very likely to slow and I read that it requires additional setup. So I decided on using IPC. Because the Gamecube code can't use any of the IPC mechanisms provided by the host OS (shared memory, pipes, etc) my plan is to reserve a small part of the Gamecube's memory and use it like a shared memory region via debugging functions like WriteProcessMemory or process_vm_writev. In order to make those writes by another program immediately visible to the PowerPC application the data needs to be always fetched from RAM (via a volatile pointer). Question: If the PowerPC code requests an uncached read does the JIT also spit out an uncached read on the host CPU? Further x86 processors have out of order execution and as such mfence, lfence and sfence instructions while the Gekko CPU doesn't. How does Dolphin deal with reordering of instructions that wouldn't have taken place on the original Gamecube? Is there a way to make dolphin spit out mfence instructions? Is reliable IPC even possible between an x86 program and a Gamecube game? Or is there a better way of communication I have missed?
I hope my plan isn't too far fetched and makes somewhat sense. In case I'm horribly confused about something please let me know.
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
IPC with game running inside dolphin - Henrik - 11-08-2018, 05:06 PM
RE: IPC with game running inside dolphin - JMC47 - 11-09-2018, 12:52 AM
RE: IPC with game running inside dolphin - Henrik - 11-09-2018, 02:43 AM
RE: IPC with game running inside dolphin - JMC47 - 11-09-2018, 04:05 AM

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


Users browsing this thread: 2 Guest(s)



Powered By MyBB | Theme by Fragma

Linear Mode
Threaded Mode