I define a new pseudo instruction, but i can not get its correct return value 
in my program.
The part of code is shown below.
In include/gem5/m5ops.h:
bool PIM(uint64_t in1, uint64_t in2, uint64_t out1, int kernel_id);

In pseudo_inst.cc:
case M5OP_RESERVED4:
        PIM(tc, args[0], args[1], args[2], args[3]);
        break;
bool 
PIM(ThreadContext *tc, uint64_t in1, uint64_t in2, uint64_t out1, int 
kernel_id){
    return tc->getCpuPtr()->PIMCommand(tc, in1, in2, out1, kernel_id);
}

In timing.cc:
bool
TimingSimpleCPU::PIMCommand(ThreadContext *tc, uint64_t in1, uint64_t in2, 
uint64_t out1, int kernel_id)

In two_byte_opcodes.isa:
0x58: m5reserved4({{
                        PseudoInst::PIM(xc->tcBase(), Rdi, Rsi, Rdx, Rcx);
                                }}, IsNonSpeculative,IsQuiesce);

I want to know why I can not get the correct bool return value in my own C++ 
program?
_______________________________________________
gem5-users mailing list -- gem5-users@gem5.org
To unsubscribe send an email to gem5-users-le...@gem5.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s

Reply via email to