mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
Add lvs{l,r} instructions.
Signed-off-by: Nathan Froyd <froydnj@codesourcery.com> Signed-off-by: Aurelien Jarno <aurelien@aurel32.net> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6169 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
e343da72b6
commit
bf8d8ded57
3 changed files with 52 additions and 0 deletions
|
@ -1972,6 +1972,24 @@ target_ulong helper_dlmzb (target_ulong high, target_ulong low, uint32_t update_
|
|||
for (index = ARRAY_SIZE(r->element)-1; index >= 0; index--)
|
||||
#endif
|
||||
|
||||
void helper_lvsl (ppc_avr_t *r, target_ulong sh)
|
||||
{
|
||||
int i, j = (sh & 0xf);
|
||||
|
||||
VECTOR_FOR_INORDER_I (i, u8) {
|
||||
r->u8[i] = j++;
|
||||
}
|
||||
}
|
||||
|
||||
void helper_lvsr (ppc_avr_t *r, target_ulong sh)
|
||||
{
|
||||
int i, j = 0x10 - (sh & 0xf);
|
||||
|
||||
VECTOR_FOR_INORDER_I (i, u8) {
|
||||
r->u8[i] = j++;
|
||||
}
|
||||
}
|
||||
|
||||
void helper_vaddcuw (ppc_avr_t *r, ppc_avr_t *a, ppc_avr_t *b)
|
||||
{
|
||||
int i;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue