diff options
author | Andrew Waterman <waterman@eecs.berkeley.edu> | 2014-01-17 14:12:42 -0800 |
---|---|---|
committer | Andrew Waterman <waterman@eecs.berkeley.edu> | 2014-01-17 14:12:42 -0800 |
commit | ac88604e8850779c33ec888ccc8399604fb2677c (patch) | |
tree | 50728b299a6e72c23b2aba471e6d2d5dbe201004 | |
parent | b71e8ecfda6a75d4bcf240e61dbc3348e76af094 (diff) | |
download | riscv-pk-ac88604e8850779c33ec888ccc8399604fb2677c.zip riscv-pk-ac88604e8850779c33ec888ccc8399604fb2677c.tar.gz riscv-pk-ac88604e8850779c33ec888ccc8399604fb2677c.tar.bz2 |
Minor cleanup
-rw-r--r-- | pk/fp.c | 14 |
1 files changed, 4 insertions, 10 deletions
@@ -215,11 +215,8 @@ int emulate_fp(trapframe_t* tf) static void __attribute__((noinline)) set_fp_reg(unsigned int which, unsigned int dp, uint64_t val) { - if(noisy) - { - printk("fpr%c[%x] <= ",dp?'d':'s',which); - printk("%lx\n",val); - } + if (noisy) + printk("fpr%c[%x] <= %lx\n", dp ? 'd' : 's', which, val); if(dp || !have_fp) fp_state.fpr[which] = val; @@ -248,11 +245,8 @@ get_fp_reg(unsigned int which, unsigned int dp) GET_FP_REG(0,s,val); } - if(noisy) - { - printk("fpr%c[%x] => ",dp?'d':'s',which); - printk("%lx\n",val); - } + if (noisy) + printk("fpr%c[%x] => %lx\n", dp ? 'd' : 's', which, val); return val; } |