mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-04 08:13:54 -06:00
CRIS: Use a helper for lz.
Signed-off-by: Edgar E. Iglesias <edgar.iglesias@gmail.com> git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@6205 c046a42c-6fe2-441c-8c8c-71466251a162
This commit is contained in:
parent
85220fba35
commit
c38ac98da5
3 changed files with 8 additions and 69 deletions
|
@ -23,6 +23,7 @@
|
|||
#include "exec.h"
|
||||
#include "mmu.h"
|
||||
#include "helper.h"
|
||||
#include "host-utils.h"
|
||||
|
||||
#define D(x)
|
||||
|
||||
|
@ -243,6 +244,11 @@ void helper_rfn(void)
|
|||
env->pregs[PR_CCS] |= M_FLAG;
|
||||
}
|
||||
|
||||
uint32_t helper_lz(uint32_t t0)
|
||||
{
|
||||
return clz32(t0);
|
||||
}
|
||||
|
||||
uint32_t helper_btst(uint32_t t0, uint32_t t1, uint32_t ccs)
|
||||
{
|
||||
/* FIXME: clean this up. */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue