I am currently using IPR_ICM register to check if an instruction is from an
application or from the OS so that I won't Inject Fault on the OS.
So in my case lets say in the fetch_impl.hh file I have added after the
fetching of the original instruction the following code
//Instruction fetch
if (cpu->readMiscReg(AlphaISA::IPR_ICM, tid) !=
AlphaISA::mode_kernel) {
//Fault Injection
}
On Mon, Oct 25, 2010 at 3:34 PM, Lide Duan <[email protected]> wrote:
> Thanks, George. Can you (or anybody else) elaborate on this?
>
>
> On Sun, Oct 24, 2010 at 11:54 PM, George Tz. <[email protected]> wrote:
>
>> I have been searching for that and though I am not quite sure if it is the
>> best way, I believe you can do it by checking the IPR_ICM register.
>> Please someone correct me if I am wrong.
>>
>> George Tziantzioulis
>>
>> On Mon, Oct 25, 2010 at 7:19 AM, Lide Duan <[email protected]> wrote:
>>
>>> Hi,
>>>
>>> I am wondering if there is anyway to distinguish application instructions
>>> from Linux OS instructions in ALPHA_FS mode?
>>>
>>> Thanks,
>>> Lide
>>>
>>> _______________________________________________
>>> m5-users mailing list
>>> [email protected]
>>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>>
>>
>>
>> _______________________________________________
>> m5-users mailing list
>> [email protected]
>> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>>
>
>
> _______________________________________________
> m5-users mailing list
> [email protected]
> http://m5sim.org/cgi-bin/mailman/listinfo/m5-users
>
_______________________________________________
m5-users mailing list
[email protected]
http://m5sim.org/cgi-bin/mailman/listinfo/m5-users