plugin registers.c checks if at least one register is read-only, which was missing for target or1k.
Reviewed-by: Philippe Mathieu-Daudé <[email protected]> Tested-by: Alex Bennée <[email protected]> Signed-off-by: Pierrick Bouvier <[email protected]> --- plugins/api.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/plugins/api.c b/plugins/api.c index eb982f9aad7..3520c96f411 100644 --- a/plugins/api.c +++ b/plugins/api.c @@ -425,6 +425,7 @@ static const char rip_str[] = "rip"; /* x86_64-specific name for PC */ static const char pswa_str[] = "pswa"; /* s390x-specific name for PC */ static const char iaoq_str[] = "iaoq"; /* HP/PA-specific name for PC */ static const char rpc_str[] = "rpc"; /* microblaze-specific name for PC */ +static const char ppc_str[] = "ppc"; /* or1k-specific name for PC */ static GArray *create_register_handles(GArray *gdbstub_regs) { GArray *find_data = g_array_new(true, true, @@ -449,6 +450,7 @@ static GArray *create_register_handles(GArray *gdbstub_regs) || g_strcmp0(desc.name, pswa_str) == 0 || g_strcmp0(desc.name, iaoq_str) == 0 || g_strcmp0(desc.name, rpc_str) == 0 + || g_strcmp0(desc.name, ppc_str) == 0 ) { desc.is_readonly = true; plugin_ro_bit = 1; -- 2.47.3
