Skip to content

Commit

Permalink
target/arm/translate-vfp.c: Whitespace fixes
Browse files Browse the repository at this point in the history
In the code for handling VFP system register accesses there is some
stray whitespace after a unary '-' operator, and also some incorrect
indent in a couple of function prototypes.  We're about to move this
code to another file, so fix the code style issues first so
checkpatch doesn't complain about the code-movement patch.

Cc: qemu-stable@nongnu.org
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Message-id: 20210618141019.10671-2-peter.maydell@linaro.org
  • Loading branch information
pm215 committed Jun 21, 2021
1 parent 741292f commit 41b3ffc
Showing 1 changed file with 5 additions and 6 deletions.
11 changes: 5 additions & 6 deletions target/arm/translate-vfp.c
Expand Up @@ -771,9 +771,8 @@ static void gen_branch_fpInactive(DisasContext *s, TCGCond cond,
}

static bool gen_M_fp_sysreg_write(DisasContext *s, int regno,

fp_sysreg_loadfn *loadfn,
void *opaque)
void *opaque)
{
/* Do a write to an M-profile floating point system register */
TCGv_i32 tmp;
Expand Down Expand Up @@ -874,8 +873,8 @@ static bool gen_M_fp_sysreg_write(DisasContext *s, int regno,
}

static bool gen_M_fp_sysreg_read(DisasContext *s, int regno,
fp_sysreg_storefn *storefn,
void *opaque)
fp_sysreg_storefn *storefn,
void *opaque)
{
/* Do a read from an M-profile floating point system register */
TCGv_i32 tmp;
Expand Down Expand Up @@ -1207,7 +1206,7 @@ static void fp_sysreg_to_memory(DisasContext *s, void *opaque, TCGv_i32 value)
TCGv_i32 addr;

if (!a->a) {
offset = - offset;
offset = -offset;
}

addr = load_reg(s, a->rn);
Expand Down Expand Up @@ -1242,7 +1241,7 @@ static TCGv_i32 memory_to_fp_sysreg(DisasContext *s, void *opaque)
TCGv_i32 value = tcg_temp_new_i32();

if (!a->a) {
offset = - offset;
offset = -offset;
}

addr = load_reg(s, a->rn);
Expand Down

0 comments on commit 41b3ffc

Please sign in to comment.