diff options
Diffstat (limited to 'src/target/openrisc/or1k.c')
-rw-r--r-- | src/target/openrisc/or1k.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/target/openrisc/or1k.c b/src/target/openrisc/or1k.c index a7b3ed27..f26a0162 100644 --- a/src/target/openrisc/or1k.c +++ b/src/target/openrisc/or1k.c @@ -1169,11 +1169,11 @@ static int or1k_init_target(struct command_context *cmd_ctx, static int or1k_target_create(struct target *target, Jim_Interp *interp) { - struct or1k_common *or1k = calloc(1, sizeof(struct or1k_common)); - if (target->tap == NULL) return ERROR_FAIL; + struct or1k_common *or1k = calloc(1, sizeof(struct or1k_common)); + target->arch_info = or1k; or1k_create_reg_list(target); |