From 2209d46c9477c638eba937516b63dd71a01328db Mon Sep 17 00:00:00 2001 From: Vas Crabb Date: Sun, 4 Jan 2026 14:18:18 +1100 Subject: cpu/drccache.cpp: Defer allocating to start, allow forcing W^X mode. (#14760) cpu/drccache.cpp: Added helpers for allocating structures/objects in the cache. cpu/drccache.cpp: Supply desired alignment when allocating cache memory (not fully implemented). cpu/drccache.cpp: Log some statistics on destruction. emu/emuopts.cpp: Added -[no]drc_rwx option to allow forcing W^X mode when writable executable pages are permitted. cpu/mips, cpu/powerpc: Allow DRC cache size to be set externally at configuration time, so systems can override the default. cpu/dspp, cpu/e132xs, cpu/unsp: Don't allocate DRC resources if recompiler is disabled. --- docs/source/commandline/commandline-all.rst | 27 ++++++++++++++++++++++++--- docs/source/commandline/commandline-index.rst | 1 + 2 files changed, 25 insertions(+), 3 deletions(-) (limited to 'docs') diff --git a/docs/source/commandline/commandline-all.rst b/docs/source/commandline/commandline-all.rst index ac3220aeb16..208cc9810d0 100644 --- a/docs/source/commandline/commandline-all.rst +++ b/docs/source/commandline/commandline-all.rst @@ -3923,7 +3923,9 @@ Core Misc Options **-[no]drc** - Enable DRC (dynamic recompiler) CPU core if available for maximum speed. + Enable DRC (dynamic recompiler) CPU cores if available. Turn this option + off to use interpreter CPU cores if available. This option does not affect + CPUs that only support one core type. The default is ON (**-drc**). @@ -3932,18 +3934,37 @@ Core Misc Options mame ironfort -nodrc +.. _mame-commandline-drcrwx: + +**\-[no]drc_rwx** + + Allow DRC CPU cores to use memory that is simultaneously writable and + executable if supported. Turning this option off may decrease performance. + This option only affects DRC CPU cores, and has no effect in configurations + that do not allow memory to be simultaneously writable and executable (e.g. + recent versions of macOS and NetBSD). + + The default is ON (**-drc_rwx**). + + Example: + .. code-block:: bash + + mame fiveside -nodrc_rwx + .. _mame-commandline-drcusec: **\-[no]drc_use_c** - Force DRC to use the C code backend. + Force DRC CPU cores to use the portable C code back-end when a native + back-end is available. This option only affects DRC CPU cores, and has no + effect if a native DRC back-end is not available. The default is OFF (**-nodrc_use_c**). Example: .. code-block:: bash - mame ironfort -drc_use_c + mame vamphalf -drc_use_c .. _mame-commandline-drcloguml: diff --git a/docs/source/commandline/commandline-index.rst b/docs/source/commandline/commandline-index.rst index 8d3ee9f516a..07808ee4445 100644 --- a/docs/source/commandline/commandline-index.rst +++ b/docs/source/commandline/commandline-index.rst @@ -318,6 +318,7 @@ Core Misc Options ~~~~~~~~~~~~~~~~~ | :ref:`[no]drc ` +| :ref:`[no]drc_rwx ` | :ref:`[no]drc_use_c ` | :ref:`[no]drc_log_uml ` | :ref:`[no]drc_log_native ` -- cgit v1.2.3