You shouldn't use the stable repository, and that version of gcc is pretty old. We say on our website that you should use at least 4.3.
As far as using ARM as a starting point, is OpenRiSC particularly similar to ARM in some way? If it isn't really similar, there's going to be lots and lots and lots (and lots) of code you don't need, and I don't think it will really do you much good to use it as a starting point. You can use it as an example of how to do things, but I would suggest starting from scratch and filling in things until the compiler is happy, whenever the next thing you want to work is working, etc. Also, since I know at least one person wrote an ISA without realizing it was available, there's a very simple GenericTLB in src/sim/tlb.hh which can help you get started. You won't want to use it forever, but it's one less thing to worry about when you're first getting started. Gabe On 02/02/12 15:16, Amber Sami Kubesch wrote: > I'm beginning a project where we want use the OpenRISC ISA with Gem5 > (if anybody has been working on this already, please let me know!) and > since we are hoping to use both FS and SE modes, my approach plan is > to modify the ARM ISA (if that isn't the best idea, please let me know > that too). As a starting point, I ran ARM in both SE and FS modes and > got errors. > > With the command: >> scons build/ARM_SE/gem5.opt > I got these messages: > > build/ARM_SE/arch/arm/insts/vfp.cc: In function `uint32_t > ArmISA::unsignedRSqrtEstimate(uint32_t)': > build/ARM_SE/arch/arm/insts/vfp.cc:849: warning: converting of > negative value `-0x00000000000000001' to `uint32_t' > build/ARM_SE/arch/arm/insts/vfp.cc: In function `uint32_t > ArmISA::unsignedRecipEstimate(uint32_t)': > build/ARM_SE/arch/arm/insts/vfp.cc:924: warning: converting of > negative value `-0x00000000000000001' to `uint32_t' > scons: *** [build/ARM_SE/arch/arm/insts/vfp.o] Error 1 > scons: building terminated because of errors. > > These are the versions I'm using: > > gcc version 3.4.6 20060404 (Red Hat 3.4.6-9) > swig 1.3.31 (I needed an early enough version that pcre wasn't required) > python 2.7 > scons 2.1.0.alpha.20101125 > gem5-stable-b9ba22cb23f2 > > Any advice on what might be going wrong here? I have no trouble with > ALPHA_SE or ALPHA_FS and haven't tried the others. > > Thanks, > Amber > _______________________________________________ > 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
