From 64381ad70b72ac2638c73b0653b912f5cc8ca441 Mon Sep 17 00:00:00 2001 From: Guido Trotter <ultrotter@google.com> Date: Wed, 30 Jul 2008 15:04:27 +0000 Subject: [PATCH] ChainOpCode is still BGL-only Prevent mistakes with an assert. Reviewed-by: iustinp --- lib/mcpu.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/mcpu.py b/lib/mcpu.py index 1228b2352..a802051df 100644 --- a/lib/mcpu.py +++ b/lib/mcpu.py @@ -208,6 +208,8 @@ class Processor(object): raise errors.ProgrammerError("LUs which require the BGL cannot" " be chained to granular ones.") + assert lu_class.REQ_BGL, "ChainOpCode is still BGL-only" + if lu_class.REQ_WSSTORE: sstore = ssconf.WritableSimpleStore() else: -- GitLab