eeabbd58c0
In preparation for adding super section decoding, do not restrict armv7a_mmu_translate_va_pa() to 32-bit virtual addresses since ARMv7-A processors with VMSA extensions (including LPAE) can issue wider physical addresses. Update casting to uint32_t where necessary. Change-Id: Id1c3d0d5ac324cbdc334259d9ea75fe4981671a1 Signed-off-by: Florian Fainelli <f.fainelli@gmail.com> Reviewed-on: http://openocd.zylin.com/5211 Tested-by: jenkins Reviewed-by: Antonio Borneo <borneo.antonio@gmail.com> Reviewed-by: Matthias Welwarsky <matthias@welwarsky.de>
28 lines
1.6 KiB
C
28 lines
1.6 KiB
C
/***************************************************************************
|
|
* Copyright (C) 2016 by Matthias Welwarsky *
|
|
* matthias.welwarsky@sysgo.com *
|
|
* *
|
|
* This program is free software; you can redistribute it and/or modify *
|
|
* it under the terms of the GNU General Public License as published by *
|
|
* the Free Software Foundation; either version 2 of the License, or *
|
|
* (at your option) any later version. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
|
* GNU General Public License for more details. *
|
|
* *
|
|
* You should have received a copy of the GNU General Public License *
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>. *
|
|
***************************************************************************/
|
|
|
|
#ifndef OPENOCD_TARGET_ARMV7A_MMU_H
|
|
#define OPENOCD_TARGET_ARMV7A_MMU_H
|
|
|
|
extern int armv7a_mmu_translate_va_pa(struct target *target, uint32_t va,
|
|
target_addr_t *val, int meminfo);
|
|
|
|
extern const struct command_registration armv7a_mmu_command_handlers[];
|
|
|
|
#endif /* OPENOCD_TARGET_ARMV7A_MMU_H */
|