Core/Jits: Adds an option to disable the register cache.

This will help to disable all inter-instruction dependencies.
So android users can check if only a single instruction is broken without compiling dolphin on their own.
This commit is contained in:
degasus
2019-11-16 11:25:26 +01:00
parent fe39e1e6d8
commit 3ebcc445de
9 changed files with 45 additions and 10 deletions

View File

@ -640,6 +640,8 @@ public final class SettingsFragmentPresenter
Setting jitSystemRegistersOff =
debugSection.getSetting(SettingsFile.KEY_DEBUG_JITSYSTEMREGISTEROFF);
Setting jitBranchOff = debugSection.getSetting(SettingsFile.KEY_DEBUG_JITBRANCHOFF);
Setting jitRegisterCacheOff =
debugSection.getSetting(SettingsFile.KEY_DEBUG_JITREGISTERCACHEOFF);
sl.add(new HeaderSetting(null, null, R.string.debug_warning, 0));
@ -672,6 +674,9 @@ public final class SettingsFragmentPresenter
sl.add(new CheckBoxSetting(SettingsFile.KEY_DEBUG_JITBRANCHOFF, Settings.SECTION_DEBUG,
R.string.debug_jitbranchoff, 0, false,
jitBranchOff));
sl.add(new CheckBoxSetting(SettingsFile.KEY_DEBUG_JITREGISTERCACHEOFF, Settings.SECTION_DEBUG,
R.string.debug_jitregistercacheoff, 0, false,
jitRegisterCacheOff));
}
private void addStereoSettings(ArrayList<SettingsItem> sl)

View File

@ -102,6 +102,7 @@ public final class SettingsFile
public static final String KEY_DEBUG_JITPAIREDOFF = "JitPairedOff";
public static final String KEY_DEBUG_JITSYSTEMREGISTEROFF = "JitSystemRegistersOff";
public static final String KEY_DEBUG_JITBRANCHOFF = "JitBranchOff";
public static final String KEY_DEBUG_JITREGISTERCACHEOFF = "JitRegisterCacheOff";
public static final String KEY_GCPAD_TYPE = "SIDevice";
public static final String KEY_GCPAD_G_TYPE = "PadType";

View File

@ -254,6 +254,7 @@
<string name="debug_jitpairedoff">Jit Paired Disabled</string>
<string name="debug_jitsystemregistersoffr">Jit System Registers Disabled</string>
<string name="debug_jitbranchoff">Jit Branch Disabled</string>
<string name="debug_jitregistercacheoff">Jit Register Cache Disabled</string>
<!-- Miscellaneous -->
<string name="yes">Yes</string>