mirror of
https://github.com/ARM-software/arm-trusted-firmware.git
synced 2025-04-15 00:54:22 +00:00

Errata printing is done directly via generic_errata_report. This commit removes the unused \_cpu\()_errata_report functions for all cores, and removes errata_func from cpu_ops. Change-Id: I04fefbde5f0ff63b1f1cd17c864557a14070d68c Signed-off-by: Ryan Everett <ryan.everett@arm.com>
72 lines
1.8 KiB
ArmAsm
72 lines
1.8 KiB
ArmAsm
/*
|
|
* Copyright (c) 2014-2024, Arm Limited and Contributors. All rights reserved.
|
|
*
|
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
*/
|
|
#include <arch.h>
|
|
#include <asm_macros.S>
|
|
#include <cpu_macros.S>
|
|
#include <qemu_max.h>
|
|
|
|
func qemu_max_core_pwr_dwn
|
|
/* ---------------------------------------------
|
|
* Disable the Data Cache.
|
|
* ---------------------------------------------
|
|
*/
|
|
mrs x1, sctlr_el3
|
|
bic x1, x1, #SCTLR_C_BIT
|
|
msr sctlr_el3, x1
|
|
isb
|
|
|
|
/* ---------------------------------------------
|
|
* Flush L1 cache to L2.
|
|
* ---------------------------------------------
|
|
*/
|
|
mov x18, lr
|
|
mov x0, #DCCISW
|
|
bl dcsw_op_level1
|
|
mov lr, x18
|
|
ret
|
|
endfunc qemu_max_core_pwr_dwn
|
|
|
|
func qemu_max_cluster_pwr_dwn
|
|
/* ---------------------------------------------
|
|
* Disable the Data Cache.
|
|
* ---------------------------------------------
|
|
*/
|
|
mrs x1, sctlr_el3
|
|
bic x1, x1, #SCTLR_C_BIT
|
|
msr sctlr_el3, x1
|
|
isb
|
|
|
|
/* ---------------------------------------------
|
|
* Flush all caches to PoC.
|
|
* ---------------------------------------------
|
|
*/
|
|
mov x0, #DCCISW
|
|
b dcsw_op_all
|
|
endfunc qemu_max_cluster_pwr_dwn
|
|
|
|
/* ---------------------------------------------
|
|
* This function provides cpu specific
|
|
* register information for crash reporting.
|
|
* It needs to return with x6 pointing to
|
|
* a list of register names in ascii and
|
|
* x8 - x15 having values of registers to be
|
|
* reported.
|
|
* ---------------------------------------------
|
|
*/
|
|
.section .rodata.qemu_max_regs, "aS"
|
|
qemu_max_regs: /* The ascii list of register names to be reported */
|
|
.asciz "" /* no registers to report */
|
|
|
|
func qemu_max_cpu_reg_dump
|
|
adr x6, qemu_max_regs
|
|
ret
|
|
endfunc qemu_max_cpu_reg_dump
|
|
|
|
|
|
/* cpu_ops for QEMU MAX */
|
|
declare_cpu_ops qemu_max, QEMU_MAX_MIDR, CPU_NO_RESET_FUNC, \
|
|
qemu_max_core_pwr_dwn, \
|
|
qemu_max_cluster_pwr_dwn
|