Prepare to implement pattern matching in cpu/peria