cpu.c (dc7abe4d65ad39390b2db120f5ad18f8f6576f8b) cpu.c (056f43df9168413f304500b69c33158d66efb7cf)
1/*
2 * QEMU ARM CPU
3 *
4 * Copyright (c) 2012 SUSE LINUX Products GmbH
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2

--- 182 unchanged lines hidden (view full) ---

191 env->daif &= ~(PSTATE_I | PSTATE_F);
192
193 /* The reset value of this bit is IMPDEF, but ARM recommends
194 * that it resets to 1, so QEMU always does that rather than making
195 * it dependent on CPU model.
196 */
197 env->v7m.ccr = R_V7M_CCR_STKALIGN_MASK;
198
1/*
2 * QEMU ARM CPU
3 *
4 * Copyright (c) 2012 SUSE LINUX Products GmbH
5 *
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU General Public License
8 * as published by the Free Software Foundation; either version 2

--- 182 unchanged lines hidden (view full) ---

191 env->daif &= ~(PSTATE_I | PSTATE_F);
192
193 /* The reset value of this bit is IMPDEF, but ARM recommends
194 * that it resets to 1, so QEMU always does that rather than making
195 * it dependent on CPU model.
196 */
197 env->v7m.ccr = R_V7M_CCR_STKALIGN_MASK;
198
199 /* Unlike A/R profile, M profile defines the reset LR value */
200 env->regs[14] = 0xffffffff;
201
199 /* Load the initial SP and PC from the vector table at address 0 */
200 rom = rom_ptr(0);
201 if (rom) {
202 /* Address zero is covered by ROM which hasn't yet been
203 * copied into physical memory.
204 */
205 initial_msp = ldl_p(rom);
206 initial_pc = ldl_p(rom + 4);

--- 1476 unchanged lines hidden ---
202 /* Load the initial SP and PC from the vector table at address 0 */
203 rom = rom_ptr(0);
204 if (rom) {
205 /* Address zero is covered by ROM which hasn't yet been
206 * copied into physical memory.
207 */
208 initial_msp = ldl_p(rom);
209 initial_pc = ldl_p(rom + 4);

--- 1476 unchanged lines hidden ---