Patchwork SPARC64: treat UA2007 ASI_BLK_* as translating ASIs.

login
register
mail settings
Submitter Tsuneo Saito
Date July 18, 2011, 5:32 a.m.
Message ID <1310967138-23132-1-git-send-email-tsnsaito@gmail.com>
Download mbox | patch
Permalink /patch/105161/
State New
Headers show

Comments

Tsuneo Saito - July 18, 2011, 5:32 a.m.
UA2007 ASI_BLK_* should be added in is_translating_asi().

Signed-off-by: Tsuneo Saito <tsnsaito@gmail.com>
---
 target-sparc/op_helper.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
Artyom Tarasenko - July 20, 2011, 9:56 a.m.
On Mon, Jul 18, 2011 at 7:32 AM, Tsuneo Saito <tsnsaito@gmail.com> wrote:
> UA2007 ASI_BLK_* should be added in is_translating_asi().
>
> Signed-off-by: Tsuneo Saito <tsnsaito@gmail.com>

The comment "Ultrasparc IIi translating asi" has to be adjusted too.
Otherwise
Acked-by: Artyom Tarasenko <atar4qemu@gmail.com>

The other patches - fcmp and fmovd  - pass my tests, but Blue may want
to review them himself.
Blue Swirl - July 20, 2011, 9:15 p.m.
Thanks, applied.

On Mon, Jul 18, 2011 at 8:32 AM, Tsuneo Saito <tsnsaito@gmail.com> wrote:
> UA2007 ASI_BLK_* should be added in is_translating_asi().
>
> Signed-off-by: Tsuneo Saito <tsnsaito@gmail.com>
> ---
>  target-sparc/op_helper.c |    3 ++-
>  1 files changed, 2 insertions(+), 1 deletions(-)
>
> diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
> index 15af27b..8b9eb9f 100644
> --- a/target-sparc/op_helper.c
> +++ b/target-sparc/op_helper.c
> @@ -287,7 +287,8 @@ static inline int is_translating_asi(int asi)
>      */
>     switch (asi) {
>     case 0x04 ... 0x11:
> -    case 0x18 ... 0x19:
> +    case 0x16 ... 0x19:
> +    case 0x1E ... 0x1F:
>     case 0x24 ... 0x2C:
>     case 0x70 ... 0x73:
>     case 0x78 ... 0x79:
> --
> 1.7.5.4
>
>
>

Patch

diff --git a/target-sparc/op_helper.c b/target-sparc/op_helper.c
index 15af27b..8b9eb9f 100644
--- a/target-sparc/op_helper.c
+++ b/target-sparc/op_helper.c
@@ -287,7 +287,8 @@  static inline int is_translating_asi(int asi)
      */
     switch (asi) {
     case 0x04 ... 0x11:
-    case 0x18 ... 0x19:
+    case 0x16 ... 0x19:
+    case 0x1E ... 0x1F:
     case 0x24 ... 0x2C:
     case 0x70 ... 0x73:
     case 0x78 ... 0x79: