diff options
author | Xinhao Zhang <zhangxinhao1@huawei.com> | 2020-11-03 19:45:27 +0800 |
---|---|---|
committer | Peter Maydell <peter.maydell@linaro.org> | 2020-11-10 11:03:47 +0000 |
commit | bdc3b6f570e8bd219aa6a24a149b35a691e6986c (patch) | |
tree | 90c80195f434953f7e0628ce64712bfafdb6c32f /target/arm/arch_dump.c | |
parent | 9df0a97298292f1638d4de9258ff1fc9092b7813 (diff) |
target/arm: add spaces around operator
Fix code style. Operator needs spaces both sides.
Signed-off-by: Xinhao Zhang <zhangxinhao1@huawei.com>
Signed-off-by: Kai Deng <dengkai1@huawei.com>
Message-id: 20201103114529.638233-1-zhangxinhao1@huawei.com
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Peter Maydell <peter.maydell@linaro.org>
Diffstat (limited to 'target/arm/arch_dump.c')
-rw-r--r-- | target/arm/arch_dump.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c index 7693e17e96..0184845310 100644 --- a/target/arm/arch_dump.c +++ b/target/arm/arch_dump.c @@ -114,8 +114,8 @@ static int aarch64_write_elf64_prfpreg(WriteCoreDumpFunction f, for (i = 0; i < 32; ++i) { uint64_t *q = aa64_vfp_qreg(env, i); - note.vfp.vregs[2*i + 0] = cpu_to_dump64(s, q[0]); - note.vfp.vregs[2*i + 1] = cpu_to_dump64(s, q[1]); + note.vfp.vregs[2 * i + 0] = cpu_to_dump64(s, q[0]); + note.vfp.vregs[2 * i + 1] = cpu_to_dump64(s, q[1]); } if (s->dump_info.d_endian == ELFDATA2MSB) { @@ -125,8 +125,8 @@ static int aarch64_write_elf64_prfpreg(WriteCoreDumpFunction f, */ for (i = 0; i < 32; ++i) { uint64_t tmp = note.vfp.vregs[2*i]; - note.vfp.vregs[2*i] = note.vfp.vregs[2*i+1]; - note.vfp.vregs[2*i+1] = tmp; + note.vfp.vregs[2 * i] = note.vfp.vregs[2 * i + 1]; + note.vfp.vregs[2 * i + 1] = tmp; } } |