gentoo/dev-util/unicorn/files/unicorn-2.0.1-old-style-declaration.patch
Mario Haustein d3dd74e856
dev-util/unicorn: fix modern C issue
Closes: https://bugs.gentoo.org/879685
Signed-off-by: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Signed-off-by: Sam James <sam@gentoo.org>
2025-02-16 06:31:24 +00:00

46 lines
1.4 KiB
Diff

commit 9a2583e96710ba49a8fd2a4ab87db7212c1e887c
Upstream: https://github.com/unicorn-engine/unicorn/pull/1886
Author: Mario Haustein <mario.haustein@hrz.tu-chemnitz.de>
Date: Sun Oct 8 13:40:23 2023 +0200
fix deprecated storage-class declarations
--- a/qemu/accel/tcg/cputlb.c
+++ b/qemu/accel/tcg/cputlb.c
@@ -1415,7 +1415,7 @@ load_memop(const void *haddr, MemOp op)
}
}
-static uint64_t inline
+static inline uint64_t
load_helper(CPUArchState *env, target_ulong addr, TCGMemOpIdx oi,
uintptr_t retaddr, MemOp op, bool code_read,
FullLoadHelper *full_load)
@@ -1983,7 +1983,7 @@ uint64_t cpu_ldq_data(CPUArchState *env, target_ulong ptr)
* Store Helpers
*/
-static void inline
+static inline void
store_memop(void *haddr, uint64_t val, MemOp op)
{
switch (op) {
@@ -2014,7 +2014,7 @@ store_memop(void *haddr, uint64_t val, MemOp op)
}
}
-static void inline
+static inline void
store_helper(CPUArchState *env, target_ulong addr, uint64_t val,
TCGMemOpIdx oi, uintptr_t retaddr, MemOp op)
{
@@ -2343,7 +2343,7 @@ void helper_be_stq_mmu(CPUArchState *env, target_ulong addr, uint64_t val,
* Store Helpers for cpu_ldst.h
*/
-static void inline
+static inline void
cpu_store_helper(CPUArchState *env, target_ulong addr, uint64_t val,
int mmu_idx, uintptr_t retaddr, MemOp op) // qq
{