bmc-reset: ensure error is created if host up

A separate commit will be submitted to phosphor-logging to get this new
error into the PEL registry.

Tested:
- Verified error is generated when CFAM register is A5000001

Signed-off-by: Andrew Geissler <geissonator@yahoo.com>
Change-Id: I40a1fafbffb80aaa77ed38fe93edfd5e4a59f18c
diff --git a/procedures/phal/check_host_running.cpp b/procedures/phal/check_host_running.cpp
index a72a812..a36369a 100644
--- a/procedures/phal/check_host_running.cpp
+++ b/procedures/phal/check_host_running.cpp
@@ -5,6 +5,7 @@
 
 #include "common_utils.hpp"
 #include "p10_cfam.hpp"
+#include "phalerror/create_pel.hpp"
 #include "procedures/phal/common_utils.hpp"
 #include "registration.hpp"
 
@@ -81,7 +82,8 @@
             log<level::ERR>("CFAM read indicates host is running");
         }
 
-        // TODO - Create Error
+        // Create an error so user knows system is in a bad state
+        openpower::pel::createHostRunningPEL();
 
         // Create file for host instance and create in filesystem to
         // indicate to services that host is running.