Revision 7d5099d5

b/target-cris/helper.c
74 74

  
75 75
	D(printf ("%s addr=%x pc=%x rw=%x\n", __func__, address, env->pc, rw));
76 76
	address &= TARGET_PAGE_MASK;
77
	prot = PAGE_READ | PAGE_WRITE | PAGE_EXEC;
78 77
	miss = cris_mmu_translate(&res, env, address, rw, mmu_idx);
79 78
	if (miss)
80 79
	{
......
92 91
	{
93 92
		phy = res.phy;
94 93
		prot = res.prot;
95
		address &= TARGET_PAGE_MASK;
96 94
		r = tlb_set_page(env, address, phy, prot, mmu_idx, is_softmmu);
97 95
	}
98 96
	if (r > 0)

Also available in: Unified diff