summaryrefslogtreecommitdiffstats
path: root/src/core/hle/kernel/svc_generator.py
diff options
context:
space:
mode:
authorliamwhite <liamwhite@users.noreply.github.com>2023-02-22 00:58:04 +0100
committerGitHub <noreply@github.com>2023-02-22 00:58:04 +0100
commit11f6bb153251462bf55afa59ba99b98f9c9ecaa1 (patch)
tree22a1c190d8ce59d7cb7599c1a8cf6dfbdfe53eea /src/core/hle/kernel/svc_generator.py
parentMerge pull request #9841 from abouvier/httplib-update (diff)
parentsvc: Fix type consistency (exposed on macOS) (diff)
downloadyuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.gz
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.bz2
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.lz
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.xz
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.tar.zst
yuzu-11f6bb153251462bf55afa59ba99b98f9c9ecaa1.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}")