Gpsp (dynarec) Beta Testing

Discussion in 'General Talk' started by zodttd, Mar 8, 2007.

  1. hilarycheng

    hilarycheng Still Fresh

    Joined:
    Feb 16, 2006
    Messages:
    43
    icic, I can imagine with it. is that possible to allow me to join the development for the virtualization part ? :p heehee

    since both GBA (ARM7TDMI) and MMSP2 (ARM920T) should be same ARM instruction. Only some register are different. If you can control the MMU of MMSP2, this idea will work without any problem.
     
    Last edited by a moderator: Feb 5, 2016
  2. slaanesh

    slaanesh Certified Guru

    Joined:
    Nov 9, 2005
    Messages:
    1,993
    Location:
    Melbourne, Australia
    Would the virtualization technique work for switching between THUMB and ARM mode? Does the ARM920 have the THUMB mode at all?
     
  3. hilarycheng

    hilarycheng Still Fresh

    Joined:
    Feb 16, 2006
    Messages:
    43
    yes , it support. you can check ARM920T (T = Thumb).
     
    Last edited by a moderator: Feb 5, 2016
  4. slaanesh

    slaanesh Certified Guru

    Joined:
    Nov 9, 2005
    Messages:
    1,993
    Location:
    Melbourne, Australia
    ^^
    Well that is good :)

    Other questions:
    What about how do you control what is executed? Surely you want to either execute certain sized chunks of GBA binary code or based on runtime. ie. run number of instructions equal to 16Mhz * 1/60th of a second and then update hardware/audio/controls, etc.

    Is there a supervisor mode?

    I find this kind of thing interesting, so any information like this would be great.
     
  5. nubie

    nubie Recovering Jerk-A-Holic

    Joined:
    Oct 19, 2005
    Messages:
    2,749
    Location:
    USA California
    :D :D YAY!!
     
    Last edited by a moderator: Feb 5, 2016
  6. hilarycheng

    hilarycheng Still Fresh

    Joined:
    Feb 16, 2006
    Messages:
    43
    If Based On Virtualization, it means GP2X will create a memory segment which is similiar to GBA. it will be whole GBA Image. not a part , not a chunks. Otherwise, it is meanless. just similiar when you are running VMWare.
     
    Last edited by a moderator: Feb 5, 2016
  7. nubie

    nubie Recovering Jerk-A-Holic

    Joined:
    Oct 19, 2005
    Messages:
    2,749
    Location:
    USA California
    I would expect that zodttd will run his code something like this:

    Start program, set up emulated hardware (not the ARM cpu),

    then get ROM, find ARM code to execute,

    execute ARM code natively on the GP2X CPU, grab output, apply to emulated hardware (sound, video, I/O, etc.)

    Seeing as we have 10x the cycles (~16mhz to 200+mhz), the remaining 9x cycles from every run can be used to set-up the CPU code and grab the CPU output and emulate the video and I/O (controls), not a hard job IMHO for a GBA :). Also I am guessing that the GBA uses loops of nothing a lot, so cutting those will speed it even further.

    EDIT: I see, so a virtual memory identical to GBA, should make it even easier, just redirect the GBA ARM code into the virtual GBA memory, then act on it with the emulated GBA hardware, very cool.
     
    Last edited by a moderator: Feb 5, 2016
  8. Jaguarandine

    Jaguarandine Member

    Joined:
    Jun 14, 2006
    Messages:
    245
    Yes yes, please share ZodTTD! :)
    Also, what did you think of my previous question?
     
  9. zodttd

    zodttd Solving your premature emulation since the Tapwave

    Joined:
    Dec 2, 2005
    Messages:
    1,167
    If you'd like to see how virtualisation is done, look towards GPAdvance. If it had been completed it would be similar.

    There won't need to be a lot of reworked code. It's more of removing the parts not needed, and editing the memory addressing of what is.

    I might have a person or two willing to help me with the virtualisation part. This will be fun 2x. :)
     
  10. nubie

    nubie Recovering Jerk-A-Holic

    Joined:
    Oct 19, 2005
    Messages:
    2,749
    Location:
    USA California
    Not necessarily, Zod is a wizard, and all he really needs to do is get the CPU to churn out GBA processing into his virtual GBA ram when he wants and then jump back into hardware emulating (video, sound, and input [if sound is on the second core, even easier :) ])
     
    Last edited by a moderator: Feb 5, 2016
  11. hilarycheng

    hilarycheng Still Fresh

    Joined:
    Feb 16, 2006
    Messages:
    43
    if possible, I don't think using second core is a good choice. since it draws much more power. becoz I am using battery..........

    OT: you guy don't need to sleep ? since I am living at Hong Kong which is day time now. :eek: (GMT +8)
     
    Last edited by a moderator: Feb 5, 2016
  12. cowai

    cowai hellolo.

    Joined:
    Dec 19, 2005
    Messages:
    462
    Location:
    Norway,
    All kneel before ZOD (and Squidge :p )!
     
  13. Jaguarandine

    Jaguarandine Member

    Joined:
    Jun 14, 2006
    Messages:
    245
    Thanks for the info!
    I live in NorCal so it's not that late here. I'll be going to bed soon though :)
     
  14. adso

    adso Still Fresh

    Joined:
    Oct 31, 2006
    Messages:
    45
    What? Squidge released a GP32 emulator for GP2x?? Where is it??
     
    Last edited by a moderator: Feb 5, 2016
  15. hilarycheng

    hilarycheng Still Fresh

    Joined:
    Feb 16, 2006
    Messages:
    43
    SPOT......
     
    Last edited by a moderator: Feb 5, 2016
  16. adso

    adso Still Fresh

    Joined:
    Oct 31, 2006
    Messages:
    45
    This is an awesome news!!
     
    Last edited by a moderator: Feb 5, 2016
  17. PokeParadox

    PokeParadox Founder of Pirate Games - Penjin Coder Staff Member

    Joined:
    Dec 8, 2005
    Messages:
    6,512
    Location:
    UK
    Actually it has been demonstrated that using the extra core can be more efficient than a high over clock. It just needs to be used for the correct purpose.

    I think the whole virtualisation idea is great. it should free up enough cpu time to just worry about displaying the GBA's screen. I image the GFX portion of GBA is the more complicated part, since it has hardware sprite and tile handling and such. I do not doubt that this could work, and may serve to allow us GBA at stock clock rates or possibly lower! :)
    Would sound on the second core be of benefit to performance at all?
     
    Last edited by a moderator: Feb 5, 2016
  18. zodttd

    zodttd Solving your premature emulation since the Tapwave

    Joined:
    Dec 2, 2005
    Messages:
    1,167
    It might benefit from using the second core for graphics/sound. But if it's not needed it most likely won't be used.
     
  19. sehs33

    sehs33 Member

    Joined:
    Jan 26, 2005
    Messages:
    780
    mmm, is there any need to switch to virtualiZation? has the dynarec hit a wall? or are you just excited about the joy of using this technique with Gpsp2X zodttd?:p
     
  20. god_at_hell

    god_at_hell Certified Guru

    Joined:
    Jan 5, 2004
    Messages:
    290
    Location:
    Aachen - Germany
    faster is always better :)
     

Share This Page

Loading...