~jderose/ubuntu/raring/qemu/vde-again

« back to all changes in this revision

Viewing changes to target-ppc/helper_regs.h

  • Committer: Bazaar Package Importer
  • Author(s): Aurelien Jarno, Aurelien Jarno
  • Date: 2009-03-22 10:13:17 UTC
  • mfrom: (1.2.1 upstream) (6.1.1 sid)
  • Revision ID: james.westby@ubuntu.com-20090322101317-iigjtnu5qil35dtb
Tags: 0.10.1-1
[ Aurelien Jarno ]
* New upstream stable release:
  - patches/80_stable-branch.patch: remove.
* debian/control: 
  - Remove depends on proll.
  - Move depends on device-tree-compiler to build-depends.
  - Bump Standards-Version to 3.8.1 (no changes).
* patches/82_qemu-img_decimal.patch: new patch from upstream to make
  qemu-img accept sizes with decimal values (closes: bug#501400).

Show diffs side-by-side

added added

removed removed

Lines of Context:
15
15
 *
16
16
 * You should have received a copy of the GNU Lesser General Public
17
17
 * License along with this library; if not, write to the Free Software
18
 
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 
18
 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA  02110-1301 USA
19
19
 */
20
20
 
21
21
#if !defined(__HELPER_REGS_H__)
22
22
#define __HELPER_REGS_H__
23
23
 
24
 
static always_inline target_ulong hreg_load_xer (CPUPPCState *env)
25
 
{
26
 
    return (xer_so << XER_SO) |
27
 
        (xer_ov << XER_OV) |
28
 
        (xer_ca << XER_CA) |
29
 
        (xer_bc << XER_BC) |
30
 
        (xer_cmp << XER_CMP);
31
 
}
32
 
 
33
 
static always_inline void hreg_store_xer (CPUPPCState *env, target_ulong value)
34
 
{
35
 
    xer_so = (value >> XER_SO) & 0x01;
36
 
    xer_ov = (value >> XER_OV) & 0x01;
37
 
    xer_ca = (value >> XER_CA) & 0x01;
38
 
    xer_cmp = (value >> XER_CMP) & 0xFF;
39
 
    xer_bc = (value >> XER_BC) & 0x7F;
40
 
}
41
 
 
42
24
/* Swap temporary saved registers with GPRs */
43
25
static always_inline void hreg_swap_gpr_tgpr (CPUPPCState *env)
44
26
{
45
 
    ppc_gpr_t tmp;
 
27
    target_ulong tmp;
46
28
 
47
29
    tmp = env->gpr[0];
48
30
    env->gpr[0] = env->tgpr[0];