Re: [Gems-users] No misses in the L1 Icache?


Date: Sun, 6 Jan 2008 11:01:05 +0800
From: "张量" <congwu.zhang@xxxxxxxxx>
Subject: Re: [Gems-users] No misses in the L1 Icache?
  Thank you for your reply, I have found where the problem is.
 
  I used simics-2.2 and gems-2.0, the target is sparc v9.

  I have instruction-fetch-mode set to instruction-fetch-trace , but I forgot "-stall" option when
I run simics.


  In ruby/config/ rubyconfig.defaults, I set
                       PROFILE_ALL_INSTRUCTIONS: true
                       PRINT_INSTRUCTION_TRACE: true

  And in ruby/simics/SimicsDriver.C, I modified the code as fo
bool SimicsDriver::isUnhandledTransaction(memory_transaction_t* mem_trans) {
  // only handle user data?
  if (USER_MODE_DATA_ONLY) {
    if(PRIV_MODE) {
      return true;
    }
    if(mem_trans-> s.type == Sim_Trans_Instr_Fetch) {
      /*return true;*/
      return false;
    }
  }
 
  Now I can get the right results, Thank you.

[← Prev in Thread] Current Thread [Next in Thread→]