46 lines
1.7 KiB
Diff
46 lines
1.7 KiB
Diff
|
|
From c6f178f914eeac4cf1fd537e5e1c4172cf494029 Mon Sep 17 00:00:00 2001
|
||
|
|
From: tangbinzy <tangbin_yewu@cmss.chinamobile.com>
|
||
|
|
Date: Sat, 12 Oct 2024 08:43:14 +0000
|
||
|
|
Subject: [PATCH] hw/ppc/spapr: Fix code style problems reported by checkpatch
|
||
|
|
mainline inclusion commit 6b5cf264ee76d24b357a60b69b0635a533c1f647 category:
|
||
|
|
bugfix
|
||
|
|
|
||
|
|
---------------------------------------------------------------
|
||
|
|
|
||
|
|
Reviewed-by: Daniel Henrique Barboza <danielhb413@gmail.com>
|
||
|
|
Signed-off-by: Bernhard Beschow <shentey@gmail.com>
|
||
|
|
Message-Id: <20220919231720.163121-5-shentey@gmail.com>
|
||
|
|
Signed-off-by: Daniel Henrique Barboza <danielhb413@gmail.com>
|
||
|
|
|
||
|
|
Signed-off-by: tangbinzy <tangbin_yewu@cmss.chinamobile.com>
|
||
|
|
---
|
||
|
|
include/hw/ppc/spapr.h | 5 +++--
|
||
|
|
1 file changed, 3 insertions(+), 2 deletions(-)
|
||
|
|
|
||
|
|
diff --git a/include/hw/ppc/spapr.h b/include/hw/ppc/spapr.h
|
||
|
|
index 316b80318e..8390dd7743 100644
|
||
|
|
--- a/include/hw/ppc/spapr.h
|
||
|
|
+++ b/include/hw/ppc/spapr.h
|
||
|
|
@@ -754,7 +754,8 @@ static inline uint64_t ppc64_phys_to_real(uint64_t addr)
|
||
|
|
|
||
|
|
static inline uint32_t rtas_ld(target_ulong phys, int n)
|
||
|
|
{
|
||
|
|
- return ldl_be_phys(&address_space_memory, ppc64_phys_to_real(phys + 4*n));
|
||
|
|
+ return ldl_be_phys(&address_space_memory,
|
||
|
|
+ ppc64_phys_to_real(phys + 4 * n));
|
||
|
|
}
|
||
|
|
|
||
|
|
static inline uint64_t rtas_ldq(target_ulong phys, int n)
|
||
|
|
@@ -764,7 +765,7 @@ static inline uint64_t rtas_ldq(target_ulong phys, int n)
|
||
|
|
|
||
|
|
static inline void rtas_st(target_ulong phys, int n, uint32_t val)
|
||
|
|
{
|
||
|
|
- stl_be_phys(&address_space_memory, ppc64_phys_to_real(phys + 4*n), val);
|
||
|
|
+ stl_be_phys(&address_space_memory, ppc64_phys_to_real(phys + 4 * n), val);
|
||
|
|
}
|
||
|
|
|
||
|
|
typedef void (*spapr_rtas_fn)(PowerPCCPU *cpu, SpaprMachineState *sm,
|
||
|
|
--
|
||
|
|
2.41.0.windows.1
|
||
|
|
|