[PTLsim-devel] compile error
Yusuf
Thu Sep 27 03:00:52 EDT 2007
Well, it worked. Thanks...
2007/9/27, Matt T. Yourst <yourst at peptidal.com>:
>
> On Wednesday 26 September 2007 06:03, Yusuf wrote:
> > Hello,
> > I am very new to PTLsim, I will use it for academic research and tried
> to
> > compile it today. But I have taken the following error while compiling:
> > ...
> > seqcore.cpp:775: error: no matching function for call to
> 'inrange(Waddr&,
> > W64&, W64&)'
> > seqcore.cpp: In member function 'int SequentialCore::issueload(const
> > TransOp&, SFR&, Waddr&, W64, W64, W64, PTEUpdate&)':
> > seqcore.cpp:897: error: no matching function for call to
> 'inrange(Waddr&,
> > W64&, W64&)'
> >
>
> Some versions of gcc are very strict about strong typing. Here's a simple
> fix
> (we'll add this to our next release):
>
> Old version:
>
> if unlikely (inrange(addr, config.log_trigger_virt_addr_start, ...
>
> New version:
>
> if unlikely (inrange(W64(addr), config.log_trigger_virt_addr_start ...
> ^^^ I added this type cast
>
> This should fix it. Repeat the same process if you have any more instances
> of
> this problem.
>
> I think we did not fully test the last release on 32-bit systems with this
> compiler version, where Waddr is 32 bits but config.log_... is 64 bits.
> This
> is why the compiler complains.
>
> - Matt
>
> -------------------------------------------------------
> Matt T. Yourst yourst at peptidal.com
> Peptidal Research Inc., Co-Founder and Lead Architect
> -------------------------------------------------------
> _______________________________________________
> PTLsim-devel mailing list
> PTLsim-devel at ptlsim.org
> https://ptlsim.org/mailman/listinfo/ptlsim-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://ptlsim.org/pipermail/ptlsim-devel/attachments/20070927/4215e1da/attachment.htm
More information about the PTLsim-devel mailing list