Regards,
Evan D. Wells
GIS/ISS/Open System Support Americas Region
1776 Heritage Drive  Quincy, MA 02171 
[email protected]
For storage requests use
http://jabuw1110/RemedyProd/login.aspx?req=srm200
Email Classification - Limited Access


-----Original Message-----
From: Linux on 390 Port [mailto:[email protected]] On Behalf Of
LINUX-390 automatic digest system
Sent: Thursday, July 08, 2010 12:01 AM
To: [email protected]
Subject: LINUX-390 Digest - 6 Jul 2010 to 7 Jul 2010 (#2010-163)

There are 9 messages totalling 576 lines in this issue.

Topics of the day:

  1. Assembler question (8)
  2. Running Oracle on zLinux

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

----------------------------------------------------------------------

Date:    Wed, 7 Jul 2010 10:12:12 +0200
From:    Miklos Szigetvari <[email protected]>
Subject: Assembler question

My colleague is porting some assembler code to z Linux (gcc compiler  )
and got some "invalid op code" assembler error for "EPSW" (extract psw)

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

------------------------------

Date:    Wed, 7 Jul 2010 09:40:33 +0100
From:    Richard J Moore <[email protected]>
Subject: Re: Assembler question

It's one of the more recent additions. Are you using the correct model
info on gcc?

- -
Richard J Moore - FIET, FBCS, CEng, CITP IBM z/VM CP Endicott, Z
Optimizer Manchester, Linux Technology Centre Member of the IBM Academy
of Technology http://www-03.ibm.com/ibm/academy/index.html

MOBEX: 37264807; Mobile (+44) (0)7739-875237
Office: (+44) (0)1962-817072


|------------>
| From:      |
|------------>
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
  |Miklos Szigetvari <[email protected]>
|
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
|------------>
| To:        |
|------------>
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
  |[email protected]
|
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
|------------>
| Date:      |
|------------>
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
  |07/07/2010 09:13
|
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
|------------>
| Subject:   |
|------------>
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
  |Assembler question
|
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
|------------>
| Sent by:   |
|------------>
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
  |Linux on 390 Port <[email protected]>
|
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|





My colleague is porting some assembler code to z Linux (gcc compiler  )
and got some "invalid op code" assembler error for "EPSW" (extract psw)

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

------------------------------

Date:    Wed, 7 Jul 2010 11:48:25 +0300
From:    Binyamin Dissen <[email protected]>
Subject: Re: Assembler question

On Wed, 7 Jul 2010 10:12:12 +0200 Miklos Szigetvari
<[email protected]> wrote:

:>My colleague is porting some assembler code to z Linux (gcc compiler
) :>and got some "invalid op code" assembler error for "EPSW" (extract
psw)

That is a relatively old instruction so you need to make sure that your
assembler is somewhat up to date.

You can replace it with
            DC   X'B98D',AL2(R1*16+R2) (or AL1(0),AL.4(R1,R2))

--
Binyamin Dissen <[email protected]>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel


Should you use the mailblocks package and expect a response from me, you
should preauthorize the dissensoftware.com domain.

I very rarely bother responding to challenge/response systems,
especially those from irresponsible companies.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

------------------------------

Date:    Wed, 7 Jul 2010 10:57:46 +0200
From:    Miklos Szigetvari <[email protected]>
Subject: Re: Assembler question

On 7/7/2010 10:40 AM, Richard J Moore wrote:
> It's one of the more recent additions. Are you using the correct model

> info on gcc?
>
> - -
> Richard J Moore - FIET, FBCS, CEng, CITP IBM z/VM CP Endicott, Z 
> Optimizer Manchester, Linux Technology Centre Member of the IBM 
> Academy of Technology http://www-03.ibm.com/ibm/academy/index.html
>
> MOBEX: 37264807; Mobile (+44) (0)7739-875237
> Office: (+44) (0)1962-817072
>
>
> |------------>
> | From:      |
> |------------>
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
>    |Miklos Szigetvari<[email protected]>
|
>    
> >---------------------------------------------------------------------
> ----------------------------------------------------------------------
> -------|
> |------------>
> | To:        |
> |------------>
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
>    |[email protected]
|
>    
> >---------------------------------------------------------------------
> ----------------------------------------------------------------------
> -------|
> |------------>
> | Date:      |
> |------------>
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
>    |07/07/2010 09:13
|
>    
> >---------------------------------------------------------------------
> ----------------------------------------------------------------------
> -------|
> |------------>
> | Subject:   |
> |------------>
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
>    |Assembler question
|
>    
> >---------------------------------------------------------------------
> ----------------------------------------------------------------------
> -------|
> |------------>
> | Sent by:   |
> |------------>
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
>    |Linux on 390 Port<[email protected]>
|
>    
> >---------------------------------------------------------------------
> ----------------------------------------------------------------------
> -------|
>
>
>
>
>
> My colleague is porting some assembler code to z Linux (gcc compiler  
> ) and got some "invalid op code" assembler error for "EPSW" (extract 
> psw)
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions, send 
> email to [email protected] with the message: INFO LINUX-390 or 
> visit http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit 
> http://wiki.linuxvm.org/
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions, send 
> email to [email protected] with the message: INFO LINUX-390 or 
> visit http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit 
> http://wiki.linuxvm.org/
>
>
Hi

Thank you
How can you set the model info for ASM ?

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

------------------------------

Date:    Wed, 7 Jul 2010 11:02:55 +0200
From:    Christian Borntraeger <[email protected]>
Subject: Re: Assembler question

Am Mittwoch 07 Juli 2010, 10:12:12 schrieben Sie:
> My colleague is porting some assembler code to z Linux (gcc compiler  
> ) and got some "invalid op code" assembler error for "EPSW" (extract 
> psw)

gcc should handle epsw just fine.
And on SLES10 this works indeed:

# cat epsw.s
.globl main
main:
epsw %r2,%r3
svc 1  # exit system call. return value in r2 # gcc epsw.s # ./a.out ;
echo $?
1

By the way, if you are just interested in the condition code, then IPM +
SRL is faster.

Christian

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

------------------------------

Date:    Wed, 7 Jul 2010 10:19:18 +0100
From:    Richard J Moore <[email protected]>
Subject: Re: Assembler question

gcc/as option --march=z10 should certainly provide EPSW, but I'm I'm
certain it's older than z10. When I mean new I mean more recent than
s/370 :-)

But as mentioned in another response, unless you require the entire PSW
to be stored you are better off using 3 or 4 instructions designed to
extracts specific parts of the PSW.

Richard




- -
Richard J Moore - FIET, FBCS, CEng, CITP IBM z/VM CP Endicott, Z
Optimizer Manchester, Linux Technology Centre Member of the IBM Academy
of Technology http://www-03.ibm.com/ibm/academy/index.html

MOBEX: 37264807; Mobile (+44) (0)7739-875237
Office: (+44) (0)1962-817072


|------------>
| From:      |
|------------>
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
  |Miklos Szigetvari <[email protected]>
|
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
|------------>
| To:        |
|------------>
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
  |[email protected]
|
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
|------------>
| Date:      |
|------------>
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
  |07/07/2010 09:58
|
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
|------------>
| Subject:   |
|------------>
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
  |Re: Assembler question
|
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
|------------>
| Sent by:   |
|------------>
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|
  |Linux on 390 Port <[email protected]>
|
 
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|





On 7/7/2010 10:40 AM, Richard J Moore wrote:
> It's one of the more recent additions. Are you using the correct model
info
> on gcc?
>
> - -
> Richard J Moore - FIET, FBCS, CEng, CITP IBM z/VM CP Endicott, Z 
> Optimizer Manchester, Linux Technology Centre Member of the IBM 
> Academy of Technology http://www-03.ibm.com/ibm/academy/index.html
>
> MOBEX: 37264807; Mobile (+44) (0)7739-875237
> Office: (+44) (0)1962-817072
>
>
> |------------>
> | From:      |
> |------------>
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|

>    |Miklos Szigetvari<[email protected]>
|
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|

> |------------>
> | To:        |
> |------------>
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|

>    |[email protected]
|
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|

> |------------>
> | Date:      |
> |------------>
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|

>    |07/07/2010 09:13
|
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|

> |------------>
> | Subject:   |
> |------------>
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|

>    |Assembler question
|
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|

> |------------>
> | Sent by:   |
> |------------>
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|

>    |Linux on 390 Port<[email protected]>
|
>
>-----------------------------------------------------------------------
------------------------------------------------------------------------
---|

>
>
>
>
>
> My colleague is porting some assembler code to z Linux (gcc compiler  
> ) and got some "invalid op code" assembler error for "EPSW" (extract 
> psw)
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions, send 
> email to [email protected] with the message: INFO LINUX-390 or 
> visit http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit 
> http://wiki.linuxvm.org/
>
> ----------------------------------------------------------------------
> For LINUX-390 subscribe / signoff / archive access instructions, send 
> email to [email protected] with the message: INFO LINUX-390 or
visit
> http://www.marist.edu/htbin/wlvindex?LINUX-390
> ----------------------------------------------------------------------
> For more information on Linux on System z, visit 
> http://wiki.linuxvm.org/
>
>
Hi

Thank you
How can you set the model info for ASM ?

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

------------------------------

Date:    Wed, 7 Jul 2010 12:20:04 +0200
From:    Martin Schwidefsky <[email protected]>
Subject: Re: Assembler question

On Wed, 7 Jul 2010 10:19:18 +0100
Richard J Moore <[email protected]> wrote:

> gcc/as option --march=z10 should certainly provide EPSW, but I'm I'm 
> certain it's older than z10. When I mean new I mean more recent than 
> s/370 :-)
>
> But as mentioned in another response, unless you require the entire 
> PSW to be stored you are better off using 3 or 4 instructions designed

> to extracts specific parts of the PSW.

The relevant line from the binutils opcode description file

b98d epsw RRE_RR "extract psw" z900 esa,zarch

That instruction exists for esa and zarch mode starting with the z900.
A -march=z900 should enable the instruction if your binutils version is
recent enough. With older binutils version you can use the ".insn"
pseudo-op:

.insn rre,0xb98d0000,%r<x>,%r<y>

--
blue skies,
   Martin.

"Reality continues to ruin my life." - Calvin.

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

------------------------------

Date:    Wed, 7 Jul 2010 09:50:01 -0400
From:    Alan Altmark <[email protected]>
Subject: Re: Assembler question

On Wednesday, 07/07/2010 at 05:20 EDT, Richard J Moore
<[email protected]> wrote:
> gcc/as option --march=z10 should certainly provide EPSW, but I'm I'm 
> certain it's older than z10. When I mean new I mean more recent than 
> s/370 :-)

EPSW was new with z/Architecture, and was also added to the ESA/390
instruction set on z/Architecture machines.  Compilation for a z900 or
later will provide what you need.  QED.

Those creepy tables in Appendix B of the Principles of Operation provide
this information, once you intuit that "New in z/Architecture" (N, N3)
is "z900".  The presence of instructions added after that point are
indicated by a facilities bit from STFL/STFLE.

Alan Altmark
z/VM Development
IBM Endicott

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

------------------------------

Date:    Wed, 7 Jul 2010 09:43:55 EDT
From:    Martha McConaghy <[email protected]>
Subject: Running Oracle on zLinux

Running Oracle databases and applications on Linux on System z has
become a "hot topic" for many of us now.  How to get them working and,
especially, how to get them to perform well are of major concern.
However, since this is all still relatively new, there isn't a lot of
information or real life experience available yet.

Because of the growing interest in this area, the "Linux and VM Program"
of SHARE has put together a series of presentations dedicated to this
subject.
These presentations will feature people with real life experience in
porting Oracle applications to zLinux, such as Gerard Shockley of Boston
University and David Lacey of Aetna, as well as experts who have
supported numerous customers during their transitions to this
environment.  This series will feature up-to-date information on new
releases, hidden hazards as well as hints and tips to make everything
work well.  If you are running or are about to port Oracle based
applications to zLinux, you cannot afford to miss these presentations.

This series will take place on Wed, Aug. 4 in Boston, MA as part of the
overall SHARE conference.  (For a specific listing of the presentations
being offered, please see http://share.org )  There is still plenty of
time to register for SHARE.  Full week and single day registrations are
available.

Martha McConaghy
(Linux and VM Program Manager)
Marist College

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions, send
email to [email protected] with the message: INFO LINUX-390 or
visit http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

------------------------------

End of LINUX-390 Digest - 6 Jul 2010 to 7 Jul 2010 (#2010-163)
**************************************************************

----------------------------------------------------------------------
For LINUX-390 subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO LINUX-390 or visit
http://www.marist.edu/htbin/wlvindex?LINUX-390
----------------------------------------------------------------------
For more information on Linux on System z, visit
http://wiki.linuxvm.org/

Reply via email to