feat: architecture helpers to set gp registers
Added functions to 'aarch64' and 'fake' architectures to safely change
values of general purpose registers within "arch_regs" structure.
Change-Id: I44342cec9b24d118148ee1612f7645cddbd3b14a
Signed-off-by: J-Alves <joao.alves@arm.com>
diff --git a/src/arch/fake/hypervisor/cpu.c b/src/arch/fake/hypervisor/cpu.c
index cc35dd7..244bc5e 100644
--- a/src/arch/fake/hypervisor/cpu.c
+++ b/src/arch/fake/hypervisor/cpu.c
@@ -34,6 +34,20 @@
r->arg[0] = arg;
}
+bool arch_regs_reg_num_valid(const unsigned int gp_reg_num)
+{
+ (void)gp_reg_num;
+ return false;
+}
+
+void arch_regs_set_gp_reg(struct arch_regs *r, uintreg_t value,
+ const unsigned int gp_reg_num)
+{
+ (void)r;
+ (void)value;
+ (void)gp_reg_num;
+}
+
void arch_regs_set_retval(struct arch_regs *r, struct ffa_value v)
{
r->arg[0] = v.func;