• 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 ... 10 11 12 13 14 ... 117 Next »

Compiling Win32 ARM64
View New Posts | View Today's Posts

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Thread Modes
Compiling Win32 ARM64
05-02-2018, 08:21 AM (This post was last modified: 05-02-2018, 03:08 PM by mbc07. Edit Reason: Fixed quotes )
#27
Gerdya Offline
Junior Member
**
Posts: 20
Threads: 1
Joined: Mar 2018
(05-02-2018, 05:18 AM)degasus Wrote: You need to create a github account and to close our repository there. Afterwards, you can add this clone as a new remote to you local repository and push your new commits there.
But honestly, explaining git here on the forum is likely not the best way. There are plenty of tutorials online, or you could ask on IRC. I'm also fine with the plain patch, so I could create the pull requests myself.

I did create a public repo in march:
https://github.com/Gerdya/dolphin-gerdya

But i assume i did just some wrong steps. So yup, i guess i need to read up more.

(05-02-2018, 05:18 AM)degasus Wrote: Have you read my comment about dropping the line with W18? We use the 32bit register notation there, but W18 == X18 ( != Q18, this is a NEON register ) https://github.com/dolphin-emu/dolphin/blob/master/Source/Core/Core/PowerPC/JitArm64/JitArm64_RegCache.cpp#L341

Sorry, you already told me before...i did not dare to ask what you meant with "drop register w18". In any case it is now commented out and not available for allocation anymore.

Now the crash in NTDLL is gone Smile

The next crashes have to do with code generation. I did figure out the following as far:

1) X28 is used as memory base address
2) It is intialized in JitAsm.cpp (note MEM_REG = X28)

    // set the mem_base based on MSR flags
    LDR(INDEX_UNSIGNED, ARM64Reg::W28, PPC_REG, PPCSTATE_OFF(msr));
    FixupBranch physmem = TBNZ(ARM64Reg::W28, 31 - 27);
    MOVP2R(MEM_REG, Memory::physical_base);
    FixupBranch membaseend = B();
    SetJumpTarget(physmem);
    MOVP2R(MEM_REG, Memory::logical_base);
    SetJumpTarget(membaseend);

Indeed, the content of X28 is equal to logical_base, so this works. However *logical_base is not accessible -> so i get an access violation on each load and store using X28.

I do see where physical_base is allocated/comitted, however i do not see where logical_base is allocated or comitted. Any hints?

Thanks,
Gerdya
Find
Reply
« Next Oldest | Next Newest »


Messages In This Thread
Compiling Win32 ARM64 - Gerdya - 03-26-2018, 12:41 AM
RE: Compiling Win32 ARM64 - JosJuice - 03-26-2018, 01:22 AM
RE: Compiling Win32 ARM64 - Gerdya - 03-26-2018, 03:21 AM
RE: Compiling Win32 ARM64 - JosJuice - 03-26-2018, 03:38 AM
RE: Compiling Win32 ARM64 - Gerdya - 03-26-2018, 04:44 AM
RE: Compiling Win32 ARM64 - Gerdya - 03-26-2018, 05:42 AM
RE: Compiling Win32 ARM64 - degasus - 03-27-2018, 03:46 AM
RE: Compiling Win32 ARM64 - Gerdya - 03-28-2018, 06:29 AM
RE: Compiling Win32 ARM64 - mbc07 - 03-26-2018, 03:29 PM
RE: Compiling Win32 ARM64 - degasus - 03-27-2018, 09:43 PM
RE: Compiling Win32 ARM64 - Gerdya - 03-29-2018, 02:24 AM
RE: Compiling Win32 ARM64 - degasus - 03-29-2018, 05:08 PM
RE: Compiling Win32 ARM64 - Gerdya - 03-29-2018, 08:24 PM
RE: Compiling Win32 ARM64 - degasus - 03-29-2018, 08:39 PM
RE: Compiling Win32 ARM64 - gilius - 04-02-2018, 06:56 AM
RE: Compiling Win32 ARM64 - Nintonito - 04-17-2018, 08:22 AM
RE: Compiling Win32 ARM64 - Gerdya - 04-24-2018, 04:27 AM
RE: Compiling Win32 ARM64 - degasus - 04-24-2018, 06:05 AM
RE: Compiling Win32 ARM64 - Gerdya - 04-24-2018, 06:29 AM
RE: Compiling Win32 ARM64 - degasus - 04-24-2018, 06:32 AM
RE: Compiling Win32 ARM64 - Gerdya - 04-24-2018, 08:12 AM
RE: Compiling Win32 ARM64 - JonnyH - 04-24-2018, 09:05 AM
RE: Compiling Win32 ARM64 - Gerdya - 04-24-2018, 10:32 AM
RE: Compiling Win32 ARM64 - degasus - 04-25-2018, 07:39 AM
RE: Compiling Win32 ARM64 - Gerdya - 05-02-2018, 04:20 AM
RE: Compiling Win32 ARM64 - degasus - 05-02-2018, 05:18 AM
RE: Compiling Win32 ARM64 - Gerdya - 05-02-2018, 08:21 AM
RE: Compiling Win32 ARM64 - degasus - 05-02-2018, 03:35 PM
RE: Compiling Win32 ARM64 - Gerdya - 05-14-2018, 08:09 PM
RE: Compiling Win32 ARM64 - degasus - 05-14-2018, 08:24 PM
RE: Compiling Win32 ARM64 - Gerdya - 05-15-2018, 03:04 AM
RE: Compiling Win32 ARM64 - Gerdya - 07-16-2018, 03:45 AM
RE: Compiling Win32 ARM64 - JMC47 - 07-16-2018, 08:05 AM
RE: Compiling Win32 ARM64 - degasus - 07-16-2018, 05:20 PM
RE: Compiling Win32 ARM64 - Gerdya - 07-17-2018, 08:03 AM
RE: Compiling Win32 ARM64 - Helios - 07-17-2018, 08:42 AM
RE: Compiling Win32 ARM64 - Gerdya - 12-01-2019, 11:55 PM
RE: Compiling Win32 ARM64 - MayImilae - 12-02-2019, 12:24 AM
RE: Compiling Win32 ARM64 - Gerdya - 12-02-2019, 02:51 AM
RE: Compiling Win32 ARM64 - dampflokfreund - 12-02-2019, 06:53 AM
RE: Compiling Win32 ARM64 - Gerdya - 12-02-2019, 08:16 AM
RE: Compiling Win32 ARM64 - MayImilae - 12-02-2019, 08:54 AM
RE: Compiling Win32 ARM64 - dampflokfreund - 12-12-2019, 10:46 PM
RE: Compiling Win32 ARM64 - Overhaul - 02-02-2020, 04:30 PM
RE: Compiling Win32 ARM64 - degasus - 02-04-2020, 01:22 AM
RE: Compiling Win32 ARM64 - Overhaul - 02-04-2020, 05:58 PM

  • 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