Hi All,

While playing with the x86 instructions' implementation in
micro-operations, I changed the ADD_R_I implementation, such that it does
not have to use limm uop and I replaced add uop with its immediate version
addi. The changed code looks something like this:

def macroop ADD_R_I
{
    #limm t1, imm
    #add reg, reg, t1, flags=(OF,SF,ZF,AF,PF,CF)
      addi reg, reg, imm, flags=(OF,SF,ZF,AF,PF,CF)
};

It seems like the addi does not take more than 8 bit immediate value. So, I
changed the _imm8 datatype in repsective constructors in regop.isa file.
But, still addi does not seem to take more than 8 bit immediate as seen in
output instruction traces. Any ideas, that what I might be missing here ?


Thanks for your time.
_______________________________________________
gem5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/gem5-users

Reply via email to