• 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, 03:35 PM (This post was last modified: 05-02-2018, 08:43 PM by degasus.)
#28
degasus Offline
Developer
**********
Developers (Some Administrators and Super Moderators)
Posts: 1,828
Threads: 10
Joined: May 2012
(05-02-2018, 08:21 AM)Gerdya Wrote: 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?

This is a memory failure which happens on purpose. We call it fastmem. There is a nice article about it in https://www.alchemistowl.org/pocorgtfo/pocorgtfo06.pdf (warning: 100mb) Edit: It is on page 9: 3.4 Dolphin intentionally makes thousands of segfaults
Does dolphin also crash if it is not within a debugger? If so, you can disable this feature with an ini setting:
Dolphin.ini
[Core]
Fastmem = False

This will slow down a lot, but still a lot faster than the interpreter.
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