Invalidate register cache on reset.
All tests pass with `-rtos hwthread` against spike32! Change-Id: I9051259d2702c76b7c35aeffeac020a773e0597a
This commit is contained in:
parent
b29215735c
commit
82cf37d36c
|
@ -867,13 +867,15 @@ static int old_or_new_riscv_halt(struct target *target)
|
||||||
|
|
||||||
static int riscv_assert_reset(struct target *target)
|
static int riscv_assert_reset(struct target *target)
|
||||||
{
|
{
|
||||||
|
LOG_DEBUG("[%d]", target->coreid);
|
||||||
struct target_type *tt = get_target_type(target);
|
struct target_type *tt = get_target_type(target);
|
||||||
|
riscv_invalidate_register_cache(target);
|
||||||
return tt->assert_reset(target);
|
return tt->assert_reset(target);
|
||||||
}
|
}
|
||||||
|
|
||||||
static int riscv_deassert_reset(struct target *target)
|
static int riscv_deassert_reset(struct target *target)
|
||||||
{
|
{
|
||||||
LOG_DEBUG("RISCV DEASSERT RESET");
|
LOG_DEBUG("[%d]", target->coreid);
|
||||||
struct target_type *tt = get_target_type(target);
|
struct target_type *tt = get_target_type(target);
|
||||||
return tt->deassert_reset(target);
|
return tt->deassert_reset(target);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue