hi, find attached a patch against app-sci/systemc. have hacked the systemc kernel to make it run on ppc (already summited to OSCI). dunno if it breaks x86 (shouldn't but I havn't such a thing), so take care :-) max
Created attachment 42650 [details, diff] patch against app-sci/systemc
Created attachment 42672 [details, diff] fix for gcc < 3.4, amd64 patches (but no ebuild adaption) gcc < 3.4 has problems with ' im #error additionally a compile fix for amd64 (but sorry, no ebuild adaption, since this is unfortunatly not a gentoo system :-( someone with an amd64 who can adapt the ebuild and test it there?
I think, kugelfang should be the right for this bug, as he is in the sci-herd, owns a ppc and an amd64. So, every request is fulfilled :)
I'll test this out asap ;-)
Ok, first tests done... 1.) on amd64 with bad results :-(. None of the examples work, however they do compile. There have been plenty of warnings and i suspect a bad variable type to be the guilty (All those warnings are about "right shift count >= width of type"). I will continue working on this. 2.) on pcc it works flawlessly.
amd64: guess the problem is in datatypes/fx/scfx_ieee.h where it probably gets the endianess wrong (sorry can't fix it w/o an amd64 box)
@Kugelfang: If it works flawlessly on ppc, do we still need to be in Cc to this bug?
PPC still needs to be cc'd because the patch hasn't been applied to CVS yet. If nobody objects I'll do this and mark it ~ppc.
Is there a way to have a fetch restricted source (systemc) and a non-fetch restricted source (the patch)?
Hmm.. old bug. As for as fetching patches and all, the patches seem small enough to kill downloads entirely and just shove it in FILESDIR.
36kb is too large to put in the tree. I'd say we close as CANTFIX, the fetch restrict issue isn't going to be fixed any time soon.
fine by me. thx a lot.
Just a question, did you try to get these patches accepted upstream?
(In reply to comment #13) > Just a question, did you try to get these patches accepted upstream? > yes, submitted them to OSCI, no response thou. anyway, current SystemC is at 2.1 IIRC, so this patch is most probably outdated.