On Tue, Jun 24, 2014 at 2:51 PM, Iñigo Muguruza
<[email protected]> wrote:
> Hi Stefan,
>
> i'm trying to verify your results, but I'm not able. I have used the mor1kx
> v2, running José's patch. The profiling test runs but at the end of it, an
> assertion error is occurring, so the gmon is not written.
>
> OpenOCD side:
> Info : Profiling completed. 482 samples.
> target state: halted
> openocd: target.c:3566: write_gmon: Assertion `addressSpace >= 2' failed.
> Aborted
>
Yes, that's what I said in my previous mail, José's patch is not
working, I don't know how you got it working earlier.
I worked (read - hacked) around the problem by changing:
struct reg *reg = register_get_by_name(target->reg_cache, "pc", 1);
to
struct reg *reg = register_get_by_name(target->reg_cache, "npc", 1);
in src/target/target.c
Stefan
_______________________________________________
OpenRISC mailing list
[email protected]
http://lists.openrisc.net/listinfo/openrisc