Skip to content

Commit

Permalink
target/ppc: Style fixes for monitor.c
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
dgibson committed Apr 26, 2019
1 parent fe4ade3 commit a658209
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions target/ppc/monitor.c
Expand Up @@ -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);
Expand Down

0 comments on commit a658209

Please sign in to comment.