~ubuntu-bugs-auftrags-killer/qemu/proper-error-characters

« back to all changes in this revision

Viewing changes to target-cris/op_helper.c

  • Committer: edgar_igl
  • Date: 2008-06-09 23:07:50 UTC
  • Revision ID: git-v1:5bf8f1aba1ab727713edf4084e7bc841dd1e6732
CRIS: Support RFN insn.

git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4718 c046a42c-6fe2-441c-8c8c-71466251a162

Show diffs side-by-side

added added

removed removed

Lines of Context:
220
220
                env->pregs[PR_CCS] |= P_FLAG;
221
221
}
222
222
 
 
223
void helper_rfn(void)
 
224
{
 
225
        int rflag = env->pregs[PR_CCS] & R_FLAG;
 
226
 
 
227
        D(fprintf(logfile, "rfn: erp=%x pid=%x ccs=%x btarget=%x\n", 
 
228
                 env->pregs[PR_ERP], env->pregs[PR_PID],
 
229
                 env->pregs[PR_CCS],
 
230
                 env->btarget));
 
231
 
 
232
        cris_ccs_rshift(env);
 
233
 
 
234
        /* Set the P_FLAG only if the R_FLAG is not set.  */
 
235
        if (!rflag)
 
236
                env->pregs[PR_CCS] |= P_FLAG;
 
237
 
 
238
    /* Always set the M flag.  */
 
239
    env->pregs[PR_CCS] |= M_FLAG;
 
240
}
 
241
 
223
242
void helper_store(uint32_t a0)
224
243
{
225
244
        if (env->pregs[PR_CCS] & P_FLAG )