They all inherit from the same sets of classes in
src/arch/generic/types.hh.    You can use any of those constructors or
"set" methods to properly convert.  Also look at the corresponding types.hh
file in the ISA-specific folder (ex: src/arch/arm/types.hh).

TheISA::PCState pc_addr(0x120000cf4); // should work (calling the
constructor, which likely calls "set" to set the next pc based on the
instructions size).

On Mon, Feb 18, 2013 at 3:46 PM, Edward Kim <[email protected]>wrote:

> Hi All,
>
> I want to transform the data type from Addr to TheISA::PCState.
> For example, pc(data type: Addr, data value: 0x120000cf4) is changed
> to pc(data type: TheISA::PCState,  data value: 0x120000cf4 => 0x120000cf8).
>
> Thanks
>
> --Ed
>
> _______________________________________________
> 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