• 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 ... 14 15 16 17 18 ... 116 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
11-09-2018, 12:52 AM
#2
JMC47 Offline
Content Producer
*******
Content Creators (Moderators)
Posts: 6,542
Threads: 29
Joined: Feb 2013
I know Dolphin supports connecting via COM interface.
Find
Reply
11-09-2018, 02:43 AM
#3
Henrik Offline
Junior Member
**
Posts: 5
Threads: 2
Joined: May 2018
(11-09-2018, 12:52 AM)JMC47 Wrote: I know Dolphin supports connecting via COM interface.

Is there any documentation of it? I can't seem to find anything about it. Also, do you mean Microsoft's component object model? In that case is there something similiar like a D-Bus interface for other platforms?
Find
Reply
11-09-2018, 04:05 AM
#4
JMC47 Offline
Content Producer
*******
Content Creators (Moderators)
Posts: 6,542
Threads: 29
Joined: Feb 2013
I haven't used it in years so I don't remember, I'm sure some of the devs would know for certain.
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