From: Eliot Moss <moss@cs...>  20021127 03:34:55

>>>>> "R" == R S <the_only_og@...> writes: R> Hi, R> I have a question about PowerPC instructions in R> Jikes.Has the complete PowerPC instruction set been R> implemented in Jikes? I was looking at the R> OperatorList.dat and the instruction dcbtst (for R> prefetching) has not been implemented. Yes, the instruction set has been implemented, but only those instructions needed for supporting Jikes RVM. R> 1)So how do i add it ? Well, adding the instruction is one thing, but presumably you want to be able to get at it, no? How do you propose to have the system generate it? You may want to take a look at the use of dcbst, for example. (See VM_Magic.java and vm/arch/powerPC/compilers/optimizing/OPT_GenerateMachineSpecificMagic.java.) This would be if you want to express it in source code. If you want to generate it in an optimization, then you can just create the necessary instructions at the right places. R> 2)I noticed that the difference between dcbst and R> dcbtst is that the bits 2130 contain 54 for dcbst and R> 246 for dcbtst. If i make the change from 54 to 246 in R> OperatorList.dat : line no 1537 R> #################### R> PPC_DCBST R> MIR_CacheOp R> memAsLoad  memAsStore R> (31<<26  54<<1) R> will the rvm insert dcbtst instead of DCBST or will R> there be any trouble? You may need an HIR or LIR instruction, _and_ you need eventual bitpattern stuff for emitting it as machine code. I don't claim to be an expert in this :) ...  EM 