From: Lars-Peter Clausen Date: Tue, 27 Aug 2013 11:03:03 +0000 (+0200) Subject: regcache-rbtree: Fix reg_stride != 1 X-Git-Tag: v3.12-rc1~193^2~1^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b6752123ccef4eec3c70c20dbdfc05d1674319c5;p=pandora-kernel.git regcache-rbtree: Fix reg_stride != 1 There are a couple of calculations, which convert between register addresses and block indices, in regcache_rbtree_sync() and regcache_rbtree_node_alloc() which assume that reg_stride is 1. This will break the rb cache for configurations which do not use a reg_stride of 1. Also rename 'base' in regcache_rbtree_sync() to 'start' to avoid confusion with 'base_reg'. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- Reading git-diff-tree failed