forked from emmauss/Ryujinx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Print guest stack trace on invalid memory access (#1407)
* Print guest stack trace on invalid memory access * Improve XML docs
- Loading branch information
Showing
7 changed files
with
140 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Ryujinx.Cpu | ||
{ | ||
/// <summary> | ||
/// Function that handles a invalid memory access from the emulated CPU. | ||
/// </summary> | ||
/// <param name="va">Virtual address of the invalid region that is being accessed</param> | ||
/// <returns>True if the invalid access should be ignored, false otherwise</returns> | ||
public delegate bool InvalidAccessHandler(ulong va); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
using System; | ||
|
||
namespace Ryujinx.Memory | ||
{ | ||
public class InvalidMemoryRegionException : Exception | ||
{ | ||
public InvalidMemoryRegionException() : base("Attempted to access a invalid memory region.") | ||
{ | ||
} | ||
|
||
public InvalidMemoryRegionException(string message) : base(message) | ||
{ | ||
} | ||
|
||
public InvalidMemoryRegionException(string message, Exception innerException) : base(message, innerException) | ||
{ | ||
} | ||
} | ||
} |
Oops, something went wrong.