Skip to main content
summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'server/machine/cpudefs-ext.h')
-rw-r--r--server/machine/cpudefs-ext.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/server/machine/cpudefs-ext.h b/server/machine/cpudefs-ext.h
index 3a252400..240da5f7 100644
--- a/server/machine/cpudefs-ext.h
+++ b/server/machine/cpudefs-ext.h
@@ -14,10 +14,10 @@
#include <services/context-proxy.h>
-RegisterDefinition * get_reg_by_id(Context * ctx, unsigned id, unsigned munbering_convention) {
+RegisterDefinition * get_reg_by_id(Context * ctx, unsigned id, RegisterIdScope * scope) {
RegisterDefinition * defs = get_reg_definitions(ctx);
while (defs != NULL && defs->name != NULL) {
- switch (munbering_convention) {
+ switch (scope->id_type) {
case REGNUM_DWARF:
if (defs->dwarf_id == (int)id) return defs;
break;
@@ -27,6 +27,7 @@ RegisterDefinition * get_reg_by_id(Context * ctx, unsigned id, unsigned munberin
}
defs++;
}
+ set_errno(ERR_OTHER, "Invalid register ID");
return NULL;
}

Back to the top