aboutsummaryrefslogtreecommitdiff
path: root/src/target
diff options
context:
space:
mode:
authorSevan Janiyan <venture37@geeklan.co.uk>2024-01-27 21:53:11 +0000
committerAntonio Borneo <borneo.antonio@gmail.com>2024-02-24 13:37:49 +0000
commit33573cda4aa5685b32c44a81b1f2d84a28d78810 (patch)
tree3feedda24eca7a49a34307d1718ee7a1e6dc9d95 /src/target
parentb6ee13720688a9860f3397bb89ea171b0fc5ccce (diff)
downloadriscv-openocd-33573cda4aa5685b32c44a81b1f2d84a28d78810.zip
riscv-openocd-33573cda4aa5685b32c44a81b1f2d84a28d78810.tar.gz
riscv-openocd-33573cda4aa5685b32c44a81b1f2d84a28d78810.tar.bz2
src/target/riscv: Help older compilers
find members of a union, nested in struct. Allows file to be compiled with GCC 4.0 Signed-off-by: Sevan Janiyan <venture37@geeklan.co.uk> Change-Id: Ied68668d3b5f811573a20e11e83aceff268963eb Reviewed-on: https://review.openocd.org/c/openocd/+/8120 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com>
Diffstat (limited to 'src/target')
-rw-r--r--src/target/riscv/riscv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/target/riscv/riscv.c b/src/target/riscv/riscv.c
index d895ca3..9cd4922 100644
--- a/src/target/riscv/riscv.c
+++ b/src/target/riscv/riscv.c
@@ -3851,7 +3851,7 @@ int riscv_init_registers(struct target *target)
.type = REG_TYPE_ARCH_DEFINED,
.id = "FPU_FD",
.type_class = REG_TYPE_CLASS_UNION,
- .reg_type_union = &single_double_union
+ { .reg_type_union = &single_double_union }
};
static struct reg_data_type type_uint8 = { .type = REG_TYPE_UINT8, .id = "uint8" };
static struct reg_data_type type_uint16 = { .type = REG_TYPE_UINT16, .id = "uint16" };