From d021ec3c9dd9e5042e73585d686141119cb12ff0 Mon Sep 17 00:00:00 2001 From: lkcl Date: Wed, 29 Mar 2023 15:28:49 +0100 Subject: [PATCH] --- openpower/sv/rfc/ls010.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/openpower/sv/rfc/ls010.mdwn b/openpower/sv/rfc/ls010.mdwn index 83de11496..ce6b50c29 100644 --- a/openpower/sv/rfc/ls010.mdwn +++ b/openpower/sv/rfc/ls010.mdwn @@ -83,6 +83,17 @@ is inherently LSB0: void get_register_element(el_reg_t* el, int gpr, int element, int width) { switch (width) { case 64: el->l = int_regfile[gpr].l[element]; + case 32: el->i = int_regfile[gpr].i[element]; + case 16: el->s = int_regfile[gpr].s[element]; + case 8 : el->b = int_regfile[gpr].b[element]; + } + } + void set_register_element(el_reg_t* el, int gpr, int element, int width) { + switch (width) { + case 64: int_regfile[gpr].l[element] = el->l; + case 32: int_regfile[gpr].i[element] = el->i; + case 16: int_regfile[gpr].s[element] = el->s; + case 8 : int_regfile[gpr].b[element] = el->b; } } ``` -- 2.30.2