summaryrefslogtreecommitdiffstats
path: root/src/usr/pore/poreve/pore_model
diff options
context:
space:
mode:
authorThi Tran <thi@us.ibm.com>2013-12-01 09:39:35 -0600
committerA. Patrick Williams III <iawillia@us.ibm.com>2013-12-06 10:13:01 -0600
commit7615414ee5ffc83a9c2c9d65770c57f69d37fc4e (patch)
tree08ca9d4762f9be95609973b95c59efda1b1bca22 /src/usr/pore/poreve/pore_model
parent1e00a3c8a448fccb7b0afa65aa78692a3d7e3c68 (diff)
downloadtalos-hostboot-7615414ee5ffc83a9c2c9d65770c57f69d37fc4e.tar.gz
talos-hostboot-7615414ee5ffc83a9c2c9d65770c57f69d37fc4e.zip
VSBE update SW213552
Change-Id: I1e8d075ace452816183c584561fe948d338ea756 CQ:SW213552 Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/7468 Tested-by: Jenkins Server Reviewed-by: Thi N. Tran <thi@us.ibm.com> Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/usr/pore/poreve/pore_model')
-rw-r--r--src/usr/pore/poreve/pore_model/ibuf/pore_bus.c1
-rw-r--r--src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.c1
-rw-r--r--src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.h45
-rw-r--r--src/usr/pore/poreve/pore_model/ibuf/pore_ibuf.h46
-rw-r--r--src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.c46
-rw-r--r--src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.h46
-rw-r--r--src/usr/pore/poreve/pore_model/ibuf/pore_model.c14
-rw-r--r--src/usr/pore/poreve/pore_model/ibuf/pore_regs.h1
-rw-r--r--src/usr/pore/poreve/pore_model/include/pore_model.h1
-rw-r--r--src/usr/pore/poreve/pore_model/include/vsbe.H45
-rw-r--r--src/usr/pore/poreve/pore_model/wrapper/vsbe.C1
11 files changed, 128 insertions, 119 deletions
diff --git a/src/usr/pore/poreve/pore_model/ibuf/pore_bus.c b/src/usr/pore/poreve/pore_model/ibuf/pore_bus.c
index c14c1738a..ef589f166 100644
--- a/src/usr/pore/poreve/pore_model/ibuf/pore_bus.c
+++ b/src/usr/pore/poreve/pore_model/ibuf/pore_bus.c
@@ -20,6 +20,7 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: pore_bus.c,v 1.11 2013/11/27 15:36:44 thi Exp $
/******************************************************************************
*
* Virtual PORe Engine
diff --git a/src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.c b/src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.c
index a5b1de5f6..d398bdcdd 100644
--- a/src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.c
+++ b/src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.c
@@ -20,6 +20,7 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: pore_fi2c.c,v 1.8 2013/11/27 15:44:13 thi Exp $
/******************************************************************************
*
* Virtual PORe Engine
diff --git a/src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.h b/src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.h
index 6284e3648..80332e0f2 100644
--- a/src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.h
+++ b/src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.h
@@ -1,25 +1,26 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.h $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2012
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/pore/poreve/pore_model/ibuf/pore_fi2c.h $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+// $Id: pore_fi2c.h,v 1.2 2013/11/27 15:50:47 thi Exp $
#ifndef __PORE_FI2C_H__
#define __PORE_FI2C_H__
diff --git a/src/usr/pore/poreve/pore_model/ibuf/pore_ibuf.h b/src/usr/pore/poreve/pore_model/ibuf/pore_ibuf.h
index 5f19a0b47..864364b18 100644
--- a/src/usr/pore/poreve/pore_model/ibuf/pore_ibuf.h
+++ b/src/usr/pore/poreve/pore_model/ibuf/pore_ibuf.h
@@ -1,26 +1,26 @@
-/* IBM_PROLOG_BEGIN_TAG
- * This is an automatically generated prolog.
- *
- * $Source: src/usr/pore/poreve/pore_model/ibuf/pore_ibuf.h $
- *
- * IBM CONFIDENTIAL
- *
- * COPYRIGHT International Business Machines Corp. 2012
- *
- * p1
- *
- * Object Code Only (OCO) source materials
- * Licensed Internal Code Source Materials
- * IBM HostBoot Licensed Internal Code
- *
- * The source code for this program is not published or other-
- * wise divested of its trade secrets, irrespective of what has
- * been deposited with the U.S. Copyright Office.
- *
- * Origin: 30
- *
- * IBM_PROLOG_END_TAG
- */
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/pore/poreve/pore_model/ibuf/pore_ibuf.h $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+// $Id: pore_ibuf.h,v 1.8 2013/11/27 15:51:36 thi Exp $
#ifndef __PORE_IBUF_H__
#define __PORE_IBUF_H__
diff --git a/src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.c b/src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.c
index bc8d28c90..11d7a9618 100644
--- a/src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.c
+++ b/src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.c
@@ -1,26 +1,26 @@
-/* IBM_PROLOG_BEGIN_TAG
- * This is an automatically generated prolog.
- *
- * $Source: src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.c $
- *
- * IBM CONFIDENTIAL
- *
- * COPYRIGHT International Business Machines Corp. 2012
- *
- * p1
- *
- * Object Code Only (OCO) source materials
- * Licensed Internal Code Source Materials
- * IBM HostBoot Licensed Internal Code
- *
- * The source code for this program is not published or other-
- * wise divested of its trade secrets, irrespective of what has
- * been deposited with the U.S. Copyright Office.
- *
- * Origin: 30
- *
- * IBM_PROLOG_END_TAG
- */
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.c $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+// $Id: pore_inline_decode.c,v 1.4 2013/11/27 15:52:00 thi Exp $
#include <stdint.h>
#include "pore_inline_decode.h"
diff --git a/src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.h b/src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.h
index 604f32d7e..e78ac4bfb 100644
--- a/src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.h
+++ b/src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.h
@@ -1,26 +1,26 @@
-/* IBM_PROLOG_BEGIN_TAG
- * This is an automatically generated prolog.
- *
- * $Source: src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.h $
- *
- * IBM CONFIDENTIAL
- *
- * COPYRIGHT International Business Machines Corp. 2012
- *
- * p1
- *
- * Object Code Only (OCO) source materials
- * Licensed Internal Code Source Materials
- * IBM HostBoot Licensed Internal Code
- *
- * The source code for this program is not published or other-
- * wise divested of its trade secrets, irrespective of what has
- * been deposited with the U.S. Copyright Office.
- *
- * Origin: 30
- *
- * IBM_PROLOG_END_TAG
- */
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/pore/poreve/pore_model/ibuf/pore_inline_decode.h $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+// $Id: pore_inline_decode.h,v 1.4 2013/11/27 15:52:18 thi Exp $
#ifndef __PORE_INLINE_DECODE_H__
#define __PORE_INLINE_DECODE_H__
diff --git a/src/usr/pore/poreve/pore_model/ibuf/pore_model.c b/src/usr/pore/poreve/pore_model/ibuf/pore_model.c
index 8b0d5747c..5d4593e1a 100644
--- a/src/usr/pore/poreve/pore_model/ibuf/pore_model.c
+++ b/src/usr/pore/poreve/pore_model/ibuf/pore_model.c
@@ -20,6 +20,7 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: pore_model.c,v 1.26 2013/11/27 15:52:41 thi Exp $
/******************************************************************************
*
* Virtual PORe Engine
@@ -486,8 +487,10 @@ static int setAluFlags(pore_model_t p, int64_t op1, int64_t op2,
}
/* C: set carry bit */
- if (((op1 & 0x7fffffffffffffffull) +
- (op2 & 0x7FFFFFFFFFFFFFFFull)) & (0x1ull << 63)) {
+ if( op2 == 0) {
+ id_flags->c = 1;
+ } else if (((op1 & 0x7fffffffffffffffull) +
+ (op2 & 0x7FFFFFFFFFFFFFFFull)) & (0x1ull << 63)) {
if ((PORE_GET_BIT(op1,0) + PORE_GET_BIT(op2,0) + 1 ) >> 1) {
id_flags->c = 1;
@@ -1063,10 +1066,9 @@ int pore_writeReg(pore_model_t p, pore_reg_t reg, uint64_t val, uint64_t msk)
case PORE_R_CONTROL: /* SIDE EFFECTS */
return pore_control_reg_write(p, val, msk);
- case PORE_R_RESET:
- write_under_mask(&p->reset.val,
- val & PORE_RESET_VALID_BITS, msk);
- break;
+ case PORE_R_RESET: /* SIDE EFFECTS */
+ return pore_reset_reg_write(p, val, msk);
+
case PORE_R_ERROR_MASK:
write_under_mask(&p->error_mask.val,
val & PORE_ERROR_MASK_VALID_BITS, msk);
diff --git a/src/usr/pore/poreve/pore_model/ibuf/pore_regs.h b/src/usr/pore/poreve/pore_model/ibuf/pore_regs.h
index 0716984f1..afd004aa1 100644
--- a/src/usr/pore/poreve/pore_model/ibuf/pore_regs.h
+++ b/src/usr/pore/poreve/pore_model/ibuf/pore_regs.h
@@ -20,6 +20,7 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: pore_regs.h,v 1.9 2013/11/27 15:53:11 thi Exp $
#ifndef __PORE_REGS__
#define __PORE_REGS__
diff --git a/src/usr/pore/poreve/pore_model/include/pore_model.h b/src/usr/pore/poreve/pore_model/include/pore_model.h
index ef3425f64..5190151ad 100644
--- a/src/usr/pore/poreve/pore_model/include/pore_model.h
+++ b/src/usr/pore/poreve/pore_model/include/pore_model.h
@@ -20,6 +20,7 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: pore_model.h,v 1.17 2013/11/27 17:13:23 thi Exp $
#ifndef __PORE_MODEL__
#define __PORE_MODEL__
diff --git a/src/usr/pore/poreve/pore_model/include/vsbe.H b/src/usr/pore/poreve/pore_model/include/vsbe.H
index 393053303..adcf5d308 100644
--- a/src/usr/pore/poreve/pore_model/include/vsbe.H
+++ b/src/usr/pore/poreve/pore_model/include/vsbe.H
@@ -1,25 +1,26 @@
-// IBM_PROLOG_BEGIN_TAG
-// This is an automatically generated prolog.
-//
-// $Source: src/usr/pore/poreve/pore_model/include/vsbe.H $
-//
-// IBM CONFIDENTIAL
-//
-// COPYRIGHT International Business Machines Corp. 2012
-//
-// p1
-//
-// Object Code Only (OCO) source materials
-// Licensed Internal Code Source Materials
-// IBM HostBoot Licensed Internal Code
-//
-// The source code for this program is not published or other-
-// wise divested of its trade secrets, irrespective of what has
-// been deposited with the U.S. Copyright Office.
-//
-// Origin: 30
-//
-// IBM_PROLOG_END
+/* IBM_PROLOG_BEGIN_TAG */
+/* This is an automatically generated prolog. */
+/* */
+/* $Source: src/usr/pore/poreve/pore_model/include/vsbe.H $ */
+/* */
+/* IBM CONFIDENTIAL */
+/* */
+/* COPYRIGHT International Business Machines Corp. 2012,2013 */
+/* */
+/* p1 */
+/* */
+/* Object Code Only (OCO) source materials */
+/* Licensed Internal Code Source Materials */
+/* IBM HostBoot Licensed Internal Code */
+/* */
+/* The source code for this program is not published or otherwise */
+/* divested of its trade secrets, irrespective of what has been */
+/* deposited with the U.S. Copyright Office. */
+/* */
+/* Origin: 30 */
+/* */
+/* IBM_PROLOG_END_TAG */
+// $Id: vsbe.H,v 1.9 2013/11/27 17:21:19 thi Exp $
#ifndef __VSBE_H
#define __VSBE_H
diff --git a/src/usr/pore/poreve/pore_model/wrapper/vsbe.C b/src/usr/pore/poreve/pore_model/wrapper/vsbe.C
index 832f8f3f3..95c140f75 100644
--- a/src/usr/pore/poreve/pore_model/wrapper/vsbe.C
+++ b/src/usr/pore/poreve/pore_model/wrapper/vsbe.C
@@ -20,6 +20,7 @@
/* Origin: 30 */
/* */
/* IBM_PROLOG_END_TAG */
+// $Id: vsbe.C,v 1.17 2013/11/27 17:24:37 thi Exp $
/******************************************************************************
*
* \file vsbe.C
OpenPOWER on IntegriCloud