Revision 26a76461 target-sparc/helper.c

b/target-sparc/helper.c
394 394
		env->dmmuregs[4] = address; /* Fault address register */
395 395
		env->exception_index = TT_DFAULT;
396 396
#ifdef DEBUG_MMU
397
		printf("DFAULT at 0x%llx\n", address);
397
		printf("DFAULT at 0x%" PRIx64 "\n", address);
398 398
#endif
399 399
		return 1;
400 400
	    }
......
406 406
	}
407 407
    }
408 408
#ifdef DEBUG_MMU
409
    printf("DMISS at 0x%llx\n", address);
409
    printf("DMISS at 0x%" PRIx64 "\n", address);
410 410
#endif
411 411
    env->exception_index = TT_DMISS;
412 412
    return 1;
......
452 452
		env->immuregs[3] |= (is_user << 3) | 1;
453 453
		env->exception_index = TT_TFAULT;
454 454
#ifdef DEBUG_MMU
455
		printf("TFAULT at 0x%llx\n", address);
455
		printf("TFAULT at 0x%" PRIx64 "\n", address);
456 456
#endif
457 457
		return 1;
458 458
	    }
......
462 462
	}
463 463
    }
464 464
#ifdef DEBUG_MMU
465
    printf("TMISS at 0x%llx\n", address);
465
    printf("TMISS at 0x%" PRIx64 "\n", address);
466 466
#endif
467 467
    env->exception_index = TT_TMISS;
468 468
    return 1;
......
491 491
	virt_addr = address & TARGET_PAGE_MASK;
492 492
	vaddr = virt_addr + ((address & TARGET_PAGE_MASK) & (TARGET_PAGE_SIZE - 1));
493 493
#ifdef DEBUG_MMU
494
	printf("Translate at 0x%llx -> 0x%llx, vaddr 0x%llx\n", address, paddr, vaddr);
494
	printf("Translate at 0x%" PRIx64 " -> 0x%" PRIx64 ", vaddr 0x%" PRIx64 "\n", address, paddr, vaddr);
495 495
#endif
496 496
	ret = tlb_set_page_exec(env, vaddr, paddr, prot, is_user, is_softmmu);
497 497
	return ret;
......
506 506
    unsigned int i;
507 507
    const char *mask;
508 508

  
509
    printf("MMU contexts: Primary: %lld, Secondary: %lld\n", env->dmmuregs[1], env->dmmuregs[2]);
509
    printf("MMU contexts: Primary: %" PRId64 ", Secondary: %" PRId64 "\n", env->dmmuregs[1], env->dmmuregs[2]);
510 510
    if ((env->lsu & DMMU_E) == 0) {
511 511
	printf("DMMU disabled\n");
512 512
    } else {
......
528 528
		break;
529 529
	    }
530 530
	    if ((env->dtlb_tte[i] & 0x8000000000000000ULL) != 0) {
531
		printf("VA: " TARGET_FMT_lx ", PA: " TARGET_FMT_lx ", %s, %s, %s, %s, ctx %lld\n",
531
		printf("VA: " TARGET_FMT_lx ", PA: " TARGET_FMT_lx ", %s, %s, %s, %s, ctx %" PRId64 "\n",
532 532
		       env->dtlb_tag[i] & ~0x1fffULL,
533 533
		       env->dtlb_tte[i] & 0x1ffffffe000ULL,
534 534
		       mask,
......
560 560
		break;
561 561
	    }
562 562
	    if ((env->itlb_tte[i] & 0x8000000000000000ULL) != 0) {
563
		printf("VA: " TARGET_FMT_lx ", PA: " TARGET_FMT_lx ", %s, %s, %s, ctx %lld\n",
563
		printf("VA: " TARGET_FMT_lx ", PA: " TARGET_FMT_lx ", %s, %s, %s, ctx %" PRId64 "\n",
564 564
		       env->itlb_tag[i] & ~0x1fffULL,
565 565
		       env->itlb_tte[i] & 0x1ffffffe000ULL,
566 566
		       mask,

Also available in: Unified diff