Fix errors in CPER write, remove PCIe AER support.
diff --git a/generator/sections/gen-section-pcie.c b/generator/sections/gen-section-pcie.c
index 5f67c09..d7b34ec 100644
--- a/generator/sections/gen-section-pcie.c
+++ b/generator/sections/gen-section-pcie.c
@@ -26,8 +26,15 @@
*version &= 0xFFFF; //Version bytes 2-3
UINT32* reserved = (UINT32*)(bytes + 20);
*reserved = 0; //Reserved bytes 20-24
+ *(bytes + 37) &= ~0b111; //Device ID byte 13 bits 0-3
*(bytes + 39) = 0; //Device ID byte 15
+ //Set expected values.
+ int minor = rand() % 128;
+ int major = rand() % 128;
+ *version = int_to_bcd(minor);
+ *version |= int_to_bcd(major) << 8;
+
//Fix values that could be above range.
UINT32* port_type = (UINT32*)(bytes + 8);
*port_type = PCIE_PORT_TYPES[rand() % (sizeof(PCIE_PORT_TYPES) / sizeof(int))];