swtpm_setup: Fail --pcr-banks without --tpm2

Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
diff --git a/src/swtpm_setup/swtpm_setup.c b/src/swtpm_setup/swtpm_setup.c
index bf562b4..8f87ad4 100644
--- a/src/swtpm_setup/swtpm_setup.c
+++ b/src/swtpm_setup/swtpm_setup.c
@@ -1555,6 +1555,10 @@
             logerr(gl_LOGFILE, "--decryption requires --tpm2.\n");
             goto error;
         }
+        if (pcr_banks) {
+            logerr(gl_LOGFILE, "--pcr-banks requires --tpm2.\n");
+            goto error;
+        }
     }
 
     if (!(flags & SETUP_RECONFIGURE_F)) {