aboutsummaryrefslogtreecommitdiff
path: root/target/ppc
diff options
context:
space:
mode:
authorDavid Gibson <david@gibson.dropbear.id.au>2019-03-21 22:43:09 +1100
committerDavid Gibson <david@gibson.dropbear.id.au>2019-04-26 10:43:23 +1000
commita65820908a41885da5729b2501ea14b4258cfdb4 (patch)
treea814e847919a1926853aaa4d45648654a6728965 /target/ppc
parentfe4ade3155140cbcbc9d876b29fa6c2993fd0188 (diff)
downloadqemu-a65820908a41885da5729b2501ea14b4258cfdb4.zip
qemu-a65820908a41885da5729b2501ea14b4258cfdb4.tar.gz
qemu-a65820908a41885da5729b2501ea14b4258cfdb4.tar.bz2
target/ppc: Style fixes for monitor.c
Signed-off-by: David Gibson <david@gibson.dropbear.id.au> Reviewed-by: Cédric Le Goater <clg@kaod.org> Reviewed-by: Greg Kurz <groug@kaod.org>
Diffstat (limited to 'target/ppc')
-rw-r--r--target/ppc/monitor.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/target/ppc/monitor.c b/target/ppc/monitor.c
index 42e5816..ee9d6e8 100644
--- a/target/ppc/monitor.c
+++ b/target/ppc/monitor.c
@@ -27,32 +27,33 @@
#include "monitor/hmp-target.h"
#include "hmp.h"
-static target_long monitor_get_ccr (const struct MonitorDef *md, int val)
+static target_long monitor_get_ccr(const struct MonitorDef *md, int val)
{
CPUArchState *env = mon_get_cpu_env();
unsigned int u;
int i;
u = 0;
- for (i = 0; i < 8; i++)
+ for (i = 0; i < 8; i++) {
u |= env->crf[i] << (32 - (4 * (i + 1)));
+ }
return u;
}
-static target_long monitor_get_decr (const struct MonitorDef *md, int val)
+static target_long monitor_get_decr(const struct MonitorDef *md, int val)
{
CPUArchState *env = mon_get_cpu_env();
return cpu_ppc_load_decr(env);
}
-static target_long monitor_get_tbu (const struct MonitorDef *md, int val)
+static target_long monitor_get_tbu(const struct MonitorDef *md, int val)
{
CPUArchState *env = mon_get_cpu_env();
return cpu_ppc_load_tbu(env);
}
-static target_long monitor_get_tbl (const struct MonitorDef *md, int val)
+static target_long monitor_get_tbl(const struct MonitorDef *md, int val)
{
CPUArchState *env = mon_get_cpu_env();
return cpu_ppc_load_tbl(env);