aboutsummaryrefslogtreecommitdiff
path: root/target/arm/arch_dump.c
diff options
context:
space:
mode:
authorXinhao Zhang <zhangxinhao1@huawei.com>2020-11-03 19:45:27 +0800
committerPeter Maydell <peter.maydell@linaro.org>2020-11-10 11:03:47 +0000
commitbdc3b6f570e8bd219aa6a24a149b35a691e6986c (patch)
tree90c80195f434953f7e0628ce64712bfafdb6c32f /target/arm/arch_dump.c
parent9df0a97298292f1638d4de9258ff1fc9092b7813 (diff)
downloadqemu-bdc3b6f570e8bd219aa6a24a149b35a691e6986c.zip
qemu-bdc3b6f570e8bd219aa6a24a149b35a691e6986c.tar.gz
qemu-bdc3b6f570e8bd219aa6a24a149b35a691e6986c.tar.bz2
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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/target/arm/arch_dump.c b/target/arm/arch_dump.c
index 7693e17..0184845 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;
}
}