Skip to contentSkip to conversation

Use frame->retcode instead of frame address for alpha target restorer

PATCH In review [email protected] 3 participants 5 messages Mar 30, 2016 – Apr 17, 2016

lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 Use frame->retcode instead of frame address for alpha target restorer

From: Chen Gang <[email protected]>

The restorer needs the return code address which is frame->retcode, not frame itself.

---
 linux-user/signal.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
linux-user/signal.c +2 -2
index e487f9e..34367ce 100644
@@ -5396,7 +5396,7 @@ static void setup_frame(int sig, struct target_sigaction *ka,
                    &frame->retcode[1]);
         __put_user(INSN_CALLSYS, &frame->retcode[2]);
         /* imb() */
-        r26 = frame_addr;
+        r26 = frame_addr + offsetof(struct target_sigframe, retcode);
     }
 
     unlock_user_struct(frame, frame_addr, 1);
@@ -5455,7 +5455,7 @@ static void setup_rt_frame(int sig, struct target_sigaction *ka,
                    &frame->retcode[1]);
         __put_user(INSN_CALLSYS, &frame->retcode[2]);
         /* imb(); */
-        r26 = frame_addr;
+        r26 = frame_addr + offsetof(struct target_rt_sigframe, retcode);
     }
 
     if (err) {
Signature · 1 line
1.9.3
author
#3 lore raw
Quoted 11 lines · Laurent Vivier
Quoted 6 lines · Le 30/03/2016 17:42, [email protected] a écrit :

From: Chen Gang <[email protected]>

The restorer needs the return code address which is frame->retcode, not frame itself.

Thank all of you for your reviewing.

Next, I shall try to finish tilegx floating point insns.

Thanks.

Signature · 3 lines
Chen Gang (陈刚)

Managing Natural Environments is the Duty of Human Beings.
author
#4 lore raw

Hello all:

I am very sorry for delay finishing tilegx floating points insns.

The reason is that during these days (I guess, until 2016-05-01), I have no any free time.

- During these days, I am often not at home (sleep in a hotel near the office), and often work in the weekend.

- It is about the android frameworks/base, which is mostly written in Java. It is of cause very simple to me, but really quite much work need be done.

- And I guess, after 2016-05-01, I have enough free time resources on our tilegx floating point insns.

And sorry again for my delaying, if we can not bear the time point, please help implement the tilegx floating point insns.

Thanks.

Quoted 20 lines · Chen Gang
Quoted 11 lines · Laurent Vivier
Quoted 6 lines · Le 30/03/2016 17:42, [email protected] a écrit :

From: Chen Gang <[email protected]>

The restorer needs the return code address which is frame->retcode, not frame itself.

Thank all of you for your reviewing.

Next, I shall try to finish tilegx floating point insns.

Thanks.

Signature · 3 lines
Chen Gang (陈刚)

Managing Natural Environments is the Duty of Human Beings.