Hi Andreas,

Thanks for your response. I'm trying to do this in the hdlcd code.
In src/dev/arm/hdlcd.cc, instead of the call to dmaAction, I want to copy
the memory from the source to the destination without simulating any of the
reads/writes.

Could you point me to an example of PortProxy implementation? Like I
mentioned earlier, I tried using the fs_translating_port_proxy functions
which didn't work out.

Regards
Guru


On Wed, Jun 10, 2015 at 3:37 AM, Andreas Hansson <[email protected]>
wrote:

>  Hi Guru,
>
>  If you are talking about guest physical address, then it should be very
> easy, as it is a linear mapping to the host. The KVM CPU uses this fact
> quite extensively. Depending on where you want to do this, the easiest may
> be to create a PortProxy and simply read it out.
>
>  Andreas
>
>   From: Guru Prasad <[email protected]>
> Reply-To: gem5 users mailing list <[email protected]>
> Date: Tuesday, 9 June 2015 23:36
> To: gem5 users mailing list <[email protected]>
> Subject: [gem5-users] Copy memory out of simulation
>
>  Hi,
>
>  I'm trying to copy out a chunk of memory from within the simulation.
>  Is there a way to translate simulation memory addresses to host
> addresses?
>
>  I've looked at CopyOut, however, I don't have access to the current
> ThreadContext.
>  When I tried with sys->getThreadContext(0), I got:
> panic: Table walkers support functional accesses. We should never get here
>
>
>  Regards
>  Guru
>
>
> -- IMPORTANT NOTICE: The contents of this email and any attachments are
> confidential and may also be privileged. If you are not the intended
> recipient, please notify the sender immediately and do not disclose the
> contents to any other person, use it for any purpose, or store or copy the
> information in any medium. Thank you.
>
> ARM Limited, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
> Registered in England & Wales, Company No: 2557590
> ARM Holdings plc, Registered office 110 Fulbourn Road, Cambridge CB1 9NJ,
> Registered in England & Wales, Company No: 2548782
>
> _______________________________________________
> gem5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users
>
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to