diff mbox

target-ppc: add PPC_MFTB flag to e5500 core

Message ID 1469204977-23590-1-git-send-email-michael@walle.cc (mailing list archive)
State New, archived
Headers show

Commit Message

Michael Walle July 22, 2016, 4:29 p.m. UTC
According to the e5500 core reference manual it has support for the mftb
instruction.

Signed-off-by: Michael Walle <michael@walle.cc>
---
 target-ppc/translate_init.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Alexander Graf July 22, 2016, 4:36 p.m. UTC | #1
> Am 22.07.2016 um 18:29 schrieb Michael Walle <michael@walle.cc>:
> 
> According to the e5500 core reference manual it has support for the mftb
> instruction.
> 
> Signed-off-by: Michael Walle <michael@walle.cc>

I'm surprised this didn't hit anyone before. Could you please check the other e500 cpu types too and endure consistency?

Alex

> ---
> target-ppc/translate_init.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
> index 5ecafc7..f1261af 100644
> --- a/target-ppc/translate_init.c
> +++ b/target-ppc/translate_init.c
> @@ -5179,7 +5179,7 @@ POWERPC_FAMILY(e5500)(ObjectClass *oc, void *data)
>     dc->desc = "e5500 core";
>     pcc->init_proc = init_proc_e5500;
>     pcc->check_pow = check_pow_none;
> -    pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL |
> +    pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL | PPC_MFTB |
>                        PPC_WRTEE | PPC_RFDI | PPC_RFMCI |
>                        PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI |
>                        PPC_CACHE_DCBZ | PPC_CACHE_DCBA |
> -- 
> 2.1.4
>
diff mbox

Patch

diff --git a/target-ppc/translate_init.c b/target-ppc/translate_init.c
index 5ecafc7..f1261af 100644
--- a/target-ppc/translate_init.c
+++ b/target-ppc/translate_init.c
@@ -5179,7 +5179,7 @@  POWERPC_FAMILY(e5500)(ObjectClass *oc, void *data)
     dc->desc = "e5500 core";
     pcc->init_proc = init_proc_e5500;
     pcc->check_pow = check_pow_none;
-    pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL |
+    pcc->insns_flags = PPC_INSNS_BASE | PPC_ISEL | PPC_MFTB |
                        PPC_WRTEE | PPC_RFDI | PPC_RFMCI |
                        PPC_CACHE | PPC_CACHE_LOCK | PPC_CACHE_ICBI |
                        PPC_CACHE_DCBZ | PPC_CACHE_DCBA |