Commit ce24e07b7da96c71109a9f529e5de897b6b17374

Authored by Edgar E. Iglesias
1 parent 41107bcb

CRIS: Prettify sizes for the internal disasm.

Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com>
Showing 1 changed file with 8 additions and 8 deletions
target-cris/translate.c
@@ -2392,7 +2392,7 @@ static unsigned int dec_test_m(DisasContext *dc) @@ -2392,7 +2392,7 @@ static unsigned int dec_test_m(DisasContext *dc)
2392 TCGv t[2]; 2392 TCGv t[2];
2393 int memsize = memsize_zz(dc); 2393 int memsize = memsize_zz(dc);
2394 int insn_len; 2394 int insn_len;
2395 - LOG_DIS("test.%d [$r%u%s] op2=%x\n", 2395 + LOG_DIS("test.%c [$r%u%s] op2=%x\n",
2396 memsize_char(memsize), 2396 memsize_char(memsize),
2397 dc->op1, dc->postinc ? "+]" : "]", 2397 dc->op1, dc->postinc ? "+]" : "]",
2398 dc->op2); 2398 dc->op2);
@@ -2416,7 +2416,7 @@ static unsigned int dec_and_m(DisasContext *dc) @@ -2416,7 +2416,7 @@ static unsigned int dec_and_m(DisasContext *dc)
2416 TCGv t[2]; 2416 TCGv t[2];
2417 int memsize = memsize_zz(dc); 2417 int memsize = memsize_zz(dc);
2418 int insn_len; 2418 int insn_len;
2419 - LOG_DIS("and.%d [$r%u%s, $r%u\n", 2419 + LOG_DIS("and.%c [$r%u%s, $r%u\n",
2420 memsize_char(memsize), 2420 memsize_char(memsize),
2421 dc->op1, dc->postinc ? "+]" : "]", 2421 dc->op1, dc->postinc ? "+]" : "]",
2422 dc->op2); 2422 dc->op2);
@@ -2435,7 +2435,7 @@ static unsigned int dec_add_m(DisasContext *dc) @@ -2435,7 +2435,7 @@ static unsigned int dec_add_m(DisasContext *dc)
2435 TCGv t[2]; 2435 TCGv t[2];
2436 int memsize = memsize_zz(dc); 2436 int memsize = memsize_zz(dc);
2437 int insn_len; 2437 int insn_len;
2438 - LOG_DIS("add.%d [$r%u%s, $r%u\n", 2438 + LOG_DIS("add.%c [$r%u%s, $r%u\n",
2439 memsize_char(memsize), 2439 memsize_char(memsize),
2440 dc->op1, dc->postinc ? "+]" : "]", 2440 dc->op1, dc->postinc ? "+]" : "]",
2441 dc->op2); 2441 dc->op2);
@@ -2455,7 +2455,7 @@ static unsigned int dec_addo_m(DisasContext *dc) @@ -2455,7 +2455,7 @@ static unsigned int dec_addo_m(DisasContext *dc)
2455 TCGv t[2]; 2455 TCGv t[2];
2456 int memsize = memsize_zz(dc); 2456 int memsize = memsize_zz(dc);
2457 int insn_len; 2457 int insn_len;
2458 - LOG_DIS("add.%d [$r%u%s, $r%u\n", 2458 + LOG_DIS("add.%c [$r%u%s, $r%u\n",
2459 memsize_char(memsize), 2459 memsize_char(memsize),
2460 dc->op1, dc->postinc ? "+]" : "]", 2460 dc->op1, dc->postinc ? "+]" : "]",
2461 dc->op2); 2461 dc->op2);
@@ -2474,7 +2474,7 @@ static unsigned int dec_bound_m(DisasContext *dc) @@ -2474,7 +2474,7 @@ static unsigned int dec_bound_m(DisasContext *dc)
2474 TCGv l[2]; 2474 TCGv l[2];
2475 int memsize = memsize_zz(dc); 2475 int memsize = memsize_zz(dc);
2476 int insn_len; 2476 int insn_len;
2477 - LOG_DIS("bound.%d [$r%u%s, $r%u\n", 2477 + LOG_DIS("bound.%c [$r%u%s, $r%u\n",
2478 memsize_char(memsize), 2478 memsize_char(memsize),
2479 dc->op1, dc->postinc ? "+]" : "]", 2479 dc->op1, dc->postinc ? "+]" : "]",
2480 dc->op2); 2480 dc->op2);
@@ -2537,7 +2537,7 @@ static unsigned int dec_or_m(DisasContext *dc) @@ -2537,7 +2537,7 @@ static unsigned int dec_or_m(DisasContext *dc)
2537 TCGv t[2]; 2537 TCGv t[2];
2538 int memsize = memsize_zz(dc); 2538 int memsize = memsize_zz(dc);
2539 int insn_len; 2539 int insn_len;
2540 - LOG_DIS("or.%d [$r%u%s, $r%u pc=%x\n", 2540 + LOG_DIS("or.%c [$r%u%s, $r%u pc=%x\n",
2541 memsize_char(memsize), 2541 memsize_char(memsize),
2542 dc->op1, dc->postinc ? "+]" : "]", 2542 dc->op1, dc->postinc ? "+]" : "]",
2543 dc->op2, dc->pc); 2543 dc->op2, dc->pc);
@@ -2692,8 +2692,8 @@ static unsigned int dec_move_rm(DisasContext *dc) @@ -2692,8 +2692,8 @@ static unsigned int dec_move_rm(DisasContext *dc)
2692 2692
2693 memsize = memsize_zz(dc); 2693 memsize = memsize_zz(dc);
2694 2694
2695 - LOG_DIS("move.%d $r%u, [$r%u]\n",  
2696 - memsize, dc->op2, dc->op1); 2695 + LOG_DIS("move.%c $r%u, [$r%u]\n",
  2696 + memsize_char(memsize), dc->op2, dc->op1);
2697 2697
2698 /* prepare store. */ 2698 /* prepare store. */
2699 cris_flush_cc_state(dc); 2699 cris_flush_cc_state(dc);