summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc_generator.py
diff options
context:
space:
mode:
authorMerry <git@mary.rs>2023-02-21 22:36:20 +0100
committerMerry <git@mary.rs>2023-02-21 22:39:17 +0100
commitc9678bda2440423ec55d420aedd9a11d79834649 (patch)
treea08342651979d1eb652053efe35faa0136fbfab0 /src/core/hle/kernel/svc_generator.py
parentMerge pull request #9834 from german77/reverted (diff)
downloadyuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar
yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.gz
yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.bz2
yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.lz
yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.xz
yuzu-c9678bda2440423ec55d420aedd9a11d79834649.tar.zst
yuzu-c9678bda2440423ec55d420aedd9a11d79834649.zip
Diffstat (limited to '')
-rw-r--r--src/core/hle/kernel/svc_generator.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/svc_generator.py b/src/core/hle/kernel/svc_generator.py
index 34d2ac659..0cce69e85 100644
--- a/src/core/hle/kernel/svc_generator.py
+++ b/src/core/hle/kernel/svc_generator.py
@@ -443,7 +443,7 @@ def emit_wrapper(wrapped_fn, suffix, register_info, arguments, byte_size):
lines.append("")
for output_type, var_name, _, is_address in output_writes:
- output_type = "uintptr_t" if is_address else output_type
+ output_type = "uint64_t" if is_address else output_type
lines.append(f"{output_type} {var_name}{{}};")
for input_type, var_name, _ in input_reads:
lines.append(f"{input_type} {var_name}{{}};")
@@ -630,7 +630,7 @@ def emit_call(bitness, names, suffix):
def build_fn_declaration(return_type, name, arguments):
arg_list = ["Core::System& system"]
for arg in arguments:
- type_name = "uintptr_t" if arg.is_address else arg.type_name
+ type_name = "uint64_t" if arg.is_address else arg.type_name
pointer = "*" if arg.is_output and not arg.is_outptr else ""
arg_list.append(f"{type_name}{pointer} {arg.var_name}")