From: lkcl Date: Wed, 29 Mar 2023 14:28:49 +0000 (+0100) Subject: (no commit message) X-Git-Tag: opf_rfc_ls001_v3~5 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d021ec3c9dd9e5042e73585d686141119cb12ff0;p=libreriscv.git --- 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; } } ```