summaryrefslogtreecommitdiffstats
path: root/hwpf/include
diff options
context:
space:
mode:
Diffstat (limited to 'hwpf/include')
-rw-r--r--hwpf/include/plat/target.H6
1 files changed, 2 insertions, 4 deletions
diff --git a/hwpf/include/plat/target.H b/hwpf/include/plat/target.H
index db38d912..7fb907ef 100644
--- a/hwpf/include/plat/target.H
+++ b/hwpf/include/plat/target.H
@@ -55,10 +55,6 @@ namespace fapi2
template<TargetType K, typename V>
Target<K, V>::Target(V Value)
{
- static_assert( ((K == TARGET_TYPE_CORE) &
- (K == TARGET_TYPE_EQ) ) != true,
- "TARGET_TYPE_CORE and TARGET_TYPE_EQ cannot be specified at the same time");
-
// Already formed target handle?
if(static_cast<union iv_handle>(Value).fields.type != 0)
{
@@ -173,6 +169,8 @@ namespace fapi2
template<TargetType T>
inline Target<T> Target<K, V>::getParent(void) const
{
+ static_assert(((K == TARGET_TYPE_EQ) || (K == TARGET_TYPE_CORE))
+ && (T == TARGET_TYPE_PERV), "Input target type must be either EQ/CORE, and parent type must be PERV");
return this->iv_handle.value;
}
OpenPOWER on IntegriCloud